Warning: Classpath is incomplete. Only syntax errors will be reported.
I set java.home to "/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home", when I open a java file, the vscode shows the warning message "Classpath is incomplete. Only syntax errors will be reported.", what's wrong? How can I fix this issue?
This warning message is from this file: https://github.com/gorkem/java-language-server/blob/74efc7ac1d9c9abb6728864111e33b1eb4d5e483/org.jboss.tools.vscode.java/src/org/jboss/tools/vscode/java/internal/handlers/DocumentLifeCycleHandler.java#L114
Environment
- Operating System: macOS Sierra 10.12.1
- JDK version: 1.8.0_102
- Visual Studio Code version: 1.7.2
- Java extension version: 1.8.0_102
Steps To Reproduce
- on
settings.jsonfile, setjava.hometo"/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home" - reload window
- open a java file