redhat-developer / redhat-developer/vscode-java

Maven projects not loading in VS Code after latest Language Support for Java by Red Hat Extension Update (v1.42.0)

Open
#4,054 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

After updating the Language Support for Java(TM) by Red Hat extension to version 1.42.0 (2025-05-19), my Maven Java projects no longer load properly in Visual Studio Code. The Java Language Server fails to resolve standard Java classes (e.g., java.lang.Object), and the Maven projects are not recognized or built correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Open a multi-module Maven Java project in VS Code.
  2. Ensure the latest Language Support for Java(TM) by Red Hat extension (v1.42.0) is installed.
  3. Set the JDK in VS Code settings (settings.json) to JDK 8, 11, or 21 (tried all):
    "java.jdt.ls.java.home": "valid\path\to\jdk"
  4. Reload VS Code.
  5. Observe that Maven projects are not loaded, and Java standard library classes cannot be resolved.

Error Logs

  1. The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
  2. Unbound classpath container: 'JRE System Library [java-21-openjdk]' in project ...

Environment (please complete the following information):

  • OS: Windows 10/11
  • VS Code version: [1.100.2]
  • Language Support for Java(TM) by Red Hat extension version: 1.42.0
  • JDK versions tried: 8, 11, 21 (paths set correctly in settings)
  • Maven version: [3.6.0]

Additional context

  • The issue started after updating to extension v1.42.0.
  • The same project setup worked with previous extension versions.
  • Tried cleaning workspace, deleting .classpath/.settings, and reinstalling the extension, but the issue persists.

Steps already tried

  • Changed JDK versions and updated settings.json
  • Set JAVA_HOME and updated PATH
  • Cleaned and rebuilt Maven projects
  • Reinstalled Java extensions
  • Restarted VS Code and the system

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce with the multi-module Maven project, VS Code 1.100.2, extension 1.42.0, and the JDK settings in settings.json; start with the Java Language Server errors and the project’s .classpath/.settings files. Done means Maven projects load correctly and standard classes such as java.lang.Object resolve without an unbound JRE System Library.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.