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

オープン
#4,054 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, vscode

調査の方向性

マルチモジュール Maven プロジェクト、VS Code 1.100.2、extension 1.42.0、および settings.json の JDK 設定で再現します。まず Java Language Server のエラーとプロジェクトの .classpath/.settings ファイルから始めます。完了の条件は、Maven プロジェクトが正しく読み込まれ、java.lang.Object などの標準クラスが unbound JRE System Library なしで解決されることです。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
2.3k
フォーク
547
平均マージ
20時間 1分
マージ済み PR(30日)
11

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redhat-developer/vscode-java のほかの issue

redhat-developer/vscode-java の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。