redhat-developer / redhat-developer/vscode-java

Invalid runtime for JavaSE-1.8: The path (/usr/lib/jvm/java-8-openjdk) does not point to a JDK.

未关闭
#3,745 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

Invalid runtime for JavaSE-1.8: The path (/usr/lib/jvm/java-8-openjdk) does not point to a JDK.

Environment
  • Operating System: Alpine Linux edge
  • JDK version: openjdk version "1.8.0_402"
  • Visual Studio Code version: 1.89.1
  • Java extension version: v1.33.0
Steps To Reproduce
  1. Open a project with target JavaSE-1.8 or lower
  2. Notification pops out and the project gets built with a different JDK (OpenJDK 17 in my case)
Current Result

OpenJDK 8 shipped with the distro is not recognized as valid jvm

Expected Result

OpenJDK 8 shipped with the distro is recognized as valid jvm

Additional Informations

Other OpenJDK versions such as 17 and 21 are recognized properly and used in build

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件或测试。使用 OpenJDK 8 在 Alpine Linux edge 上重现,然后跟踪 extension 的 JDK/runtime 验证入口;当 JavaSE-1.8 接受 /usr/lib/jvm/java-8-openjdk 且不回退到 JDK 17 时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。