diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 46da8ce8..fcbbe81d 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -180,7 +180,11 @@ function! SyntaxCheckers_java_GetLocList() " add classpathes to javac_classpath for path in split(g:syntastic_java_javac_classpath,"\n") if path != '' - let ps = glob(path,0,1) + try + let ps = glob(path,0,1) + catch + let ps = split(glob(path,0),"\n") + endtry if type(ps) == type([]) for p in ps if p != '' | let javac_classpath = s:AddToClasspath(javac_classpath,p) | endif