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)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
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:
- Open a multi-module Maven Java project in VS Code.
- Ensure the latest Language Support for Java(TM) by Red Hat extension (v1.42.0) is installed.
- 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"- Reload VS Code.
- Observe that Maven projects are not loaded, and Java standard library classes cannot be resolved.
Error Logs
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riprodurre il problema con il progetto Maven multi-modulo, VS Code 1.100.2, l’estensione 1.42.0 e le impostazioni del JDK in settings.json; iniziare dagli errori di Java Language Server e dai file .classpath/.settings del progetto. Il lavoro è completato quando i progetti Maven vengono caricati correttamente e le classi standard come java.lang.Object vengono risolte senza una unbound JRE System Library.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- build-system, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100