Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing system library #1442

Closed
Joshuahope opened this issue Dec 21, 2024 · 2 comments
Closed

Missing system library #1442

Joshuahope opened this issue Dec 21, 2024 · 2 comments

Comments

@Joshuahope
Copy link

project_jdk_version:1.8
spring_tool_jdk_version:21
errorMeg:
15:31:16.457 [pool-5-thread-1] ERROR o.s.i.v.boot.app.SpringSymbolIndex - SpringIndexerJava threw exception
java.lang.IllegalStateException: Missing system library
at org.eclipse.jdt.core.dom.ASTParser.checkForSystemLibrary(ASTParser.java:311)
at org.eclipse.jdt.core.dom.ASTParser.getClasspath(ASTParser.java:272)
at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:1107)
at org.springframework.ide.vscode.boot.java.utils.ASTParserCleanupEnabled.createASTs(ASTParserCleanupEnabled.java:91)
at org.springframework.ide.vscode.boot.java.utils.SpringIndexerJava.scanFiles(SpringIndexerJava.java:590)
at org.springframework.ide.vscode.boot.java.utils.SpringIndexerJava.scanFiles(SpringIndexerJava.java:519)
at org.springframework.ide.vscode.boot.java.utils.SpringIndexerJava.initializeProject(SpringIndexerJava.java:162)
at org.springframework.ide.vscode.boot.app.SpringSymbolIndex$InitializeProject.run(SpringSymbolIndex.java:897)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
error_branch:pre_release
normal_branch:1.59.0
the_consequences_of_errors:Unable to use API navigation

@martinlippert
Copy link
Member

This happens when using VSCode? Does the output for the spring boot tools reveal which exact JDK is being found for running the Spring Tools? And does this happen with every project or just specific ones?

@BoykoAlex BoykoAlex self-assigned this Dec 27, 2024
@BoykoAlex BoykoAlex added this to the 4.28.0.RELEASE milestone Dec 27, 2024
@BoykoAlex
Copy link
Contributor

Occurs for a project with compliance level Java 1.8 with JRE 1.8 on the classpath. By default the compliance level is set to Java 21. JDT parser checks the classpath for sys libs throws exception for high compliance level with Java 1.8 on the classpath.
Fix via ad1d5d3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants