Repository navigation
Java Support v4.0.1
Java 4.0.1
中文
改进 JDT LS 运行时 JDK(jdtls-runtime)的自动发现与启动前版本校验(#27)。
修复与改进
jdtls-runtime跳过PATH上的低版本 Java:jdtls-runtime的版本识别不再匹配 Java 8/11/17/20,避免PATH上的旧版java抢占已安装的高版本 JDK;未找到满足要求的系统 JDK 时仍保持明确报错,项目自身的 JDK 工具(java)不受影响。- 自动发现 VS Code / Cursor
redhat.java扩展自带的 JRE:将.vscode/extensions/redhat.java-*/jre/*与.cursor/extensions/redhat.java-*/jre/*纳入jdtls-runtime发现路径。 - 按目标 JDT LS 实际要求的 Java 版本校验并优选:从目标 JDT LS 核心 bundle 的
META-INF/MANIFEST.MF读取实际最低 Java 版本(例如 JDT LS 1.61 为 21,1.63+ 为 25);自动发现时优先选择当前jdtls-runtime可运行的安装,不满足时在启动进程前直接给出准确所需的 JDK 版本提示(launch.runtime_too_old)。
兼容性
与 4.0.0 相同,需要声明 sourceSettings 1 的 Lithe 宿主。
English
Improve jdtls-runtime discovery and pre-launch Java version validation for Eclipse JDT LS (#27).
Fixes & Improvements
- Skip older Java binaries on
PATHforjdtls-runtime:jdtls-runtimeversion matching now requires Java 21 or newer so an olderjavaonPATH(such as Java 8, 11, or 17) no longer shadows discovered JDK 21+ installations. The projectJDKtool (java) continues to support Java 8+. - Discover JREs bundled in VS Code / Cursor
redhat.javaextensions: add.vscode/extensions/redhat.java-*/jre/*and.cursor/extensions/redhat.java-*/jre/*tojdtls-runtimediscovery. - Validate against each JDT LS installation's required Java release: inspect core JDT LS bundle
META-INF/MANIFEST.MFheaders (Bundle-RequiredExecutionEnvironment/Require-Capability) to determine the minimum required Java version (e.g., 21 for JDT LS 1.61, 25 for JDT LS 1.63+), prefer a runnable installation during automatic discovery, and report the exact required JDK version before launch (launch.runtime_too_old).
Compatibility
Same as 4.0.0: requires a Lithe host advertising sourceSettings 1.
SHA-256
ce5d127eef82263378a330f29932f14a6c3408a577b810f8a7422b39088bb435 Lithe-Java-Support-4.0.1-darwin-arm64.zip
283aeae5eb390e150f116fcbec7b9eed99ec0342dd1952e5798fa0dea6669145 Lithe-Java-Support-4.0.1-darwin-x64.zip
328b8d47fbae989d39cda0f070deb316a9f157425473f40d89cefeb51a55135b Lithe-Java-Support-4.0.1-windows-x64.zip
40fd03c2c2dbf32cc3c141f4f6863ee526f4f73ee010990ad701f30053071088 Lithe-Java-Support-4.0.1-linux-arm64.zip
42c4349c4b79b442cd04639bac32205c4dac730dbc2145ea9e39ec76ddcc0a7b Lithe-Java-Support-4.0.1-linux-x64.zip