Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"Classpath is incomplete" warning

Fred Bricon edited this pageFeb 28, 2019 ·8 revisions

Whenever a java file is opened, that does not belong to a project (what we call a standalone Java file), vscode-java is unable to compute a proper classpath. It makes it useless to report compilation errors, as the UI would be filled with distracting red errors all over the file, like:

Fortunately, vscode-java is still able to provide useful content-assist for base JDK classes, report syntax errors, compute class outline or allow code navigation. So, instead, the following warning is displayed:

If you simply close the message, it will pop up next time a standalone java file will be opened. It’s possible to discard the message permanently, by clicking theDon’t Show Again option.

Should you change your mind, it’s possible to modify that choice in VS Code’s user settings: Thejava.errors.incompleteClasspath.severity key specifies the severity of the message when the classpath is incomplete for a Java file. Supported values areignore,info,warning anderror.

You need to open a folder containing a pom.xml, build.gradle or at least default eclipse setting files, so that a complete classpath and project hierarchy can be set.

Android projects

Gradle-based Android projects currently show this message, as Android development is not unfortunately supported at the moment. This is alimitation of BuildShip, the project providing Gradle support.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp