यहाँ विभिन्न तरीकों जो करने के लिए क्रेडिट के साथ linux vim7.4 और Syntastic3.7.0-224 में मेरे लिए काम किया का सार है से प्रत्येक।
विधि 1 - .syntastic_javac_config
1. Edit .vimrc and use this syntax:
let g:syntastic_java_javac_config_file_enabled = 1
2. Where you edit your vim files, add this to a file named .syntastic_javac_config
let g:syntastic_java_javac_classpath = '/home/davis/progs/princeton-algos/week1/libs/algs4.jar'
विधि 2 के मैनुअल निर्माण - लाभ भले ही आप कहीं वर्ग पथ को संपादित जाना जाता है।
1. Edit .vimrc and use this syntax:
let g:syntastic_java_javac_classpath = "/home/davis/progs/princeton-algos/week1/libs/algs4.jar"
यह जार और
विधि 3 कहते हैं - ऊपर टिप्पणियों इसके अलावा .syntastic_javac_config फ़ाइल
1. Edit .vimrc and use this syntax:
let g:syntastic_java_javac_config_file_enabled = 1
2. Edit a java file with vim
3. :SyntasticJavacEditClasspath
When the edit window opens, add the class path without quotes and a newline after each entry the class path. In my case, this is the entry
for the setting includes the current folder as well:
/home/davis/progs/princeton-algos/week1/libs/algs4.jar
.
4 :wq the edit setting window
5. Now the class path is set for syntastic when editing files from that location. If you edit from a new directory, you will need to repeat the process.
के स्वचालित पीढ़ी, इस post भी मदद की।
सिंटेस्टिक केवल विम और कई बाहरी कार्यक्रमों के बीच एक मध्यस्थ के रूप में कार्य करता है। आपको 1. पता होना चाहिए कि आपका कोड जांचने के लिए किस प्रोग्राम का उपयोग किया जाता है, 2. इसे अपने स्मार्ट को बेहतर बनाने के तरीके के लिए देखें। 3. देखें कि क्या आप सिंटेस्टिक को कॉन्फ़िगर कर सकते हैं। – romainl
सबसे अधिक संभावना जावैक भ्रमित हो रही है क्योंकि आप इसे गलत निर्देशिका से चला रहे हैं। – FDinoff
धन्यवाद। मैं इसे आप पूर्ण पूर्ण (वाईसीएम) के संयोजन में उपयोग कर रहा हूं। – lorean