Skip to content

Missing system library #1442

Closed
Closed

Description

@Joshuahope

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

Activity

  1. martinlippert commented on Dec 27, 2024

    @martinlippert
    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?

  2. self-assigned this
    on Dec 27, 2024
  3. added this to the 4.28.0.RELEASE milestone on Dec 27, 2024
  4. BoykoAlex commented on Dec 27, 2024

    @BoykoAlex
    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions