redhat-developer / redhat-developer/vscode-java

Removing the JRE System Library from Classpath

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

还没有人认领这个 Issue。

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

描述

I'm unable to find a way to remove the JRE System Library from the project classpath.

Eclipse has generally had the ability to remove the System Library from classpath.

Environment
  • Operating System: Windows 11 Beta (had issues on 10 as well)
  • JDK version: 8 and 11 - both unable to remove
  • Visual Studio Code version: 1.59.1
  • Java extension version: v0.81.0
Steps To Reproduce
  1. Open a project, and attempt to remove the JRE System Library.
  2. This is not possible.

A "sample" project is available at https://github.com/VivoKey/vk-u2f. The error itself is on loading CTAP2.java.

Current Result

Unable to remove JRE System Library

Expected Result

To be able to remove the JRE system library

Additional Informations

The requirement to remove JRE System Library is for programming in JavaCard, which does not use the standard Java libraries but provides it's own. I've been ignoring the issue for a while but have now found an error where using an Exception class throws build errors in VS Code (the other builds work as normal, as they don't use the system library) due to the JavaCard library also providing a java.lang.Exception.

贡献指南

打开贡献指南

从这里开始

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

调研方向

使用链接的 VivoKey/vk-u2f 示例复现该问题,重点关注 CTAP2.java 及其对 JavaCard 库的使用。检查 Java 项目的 classpath 是如何配置的,并运行项目 build 以确定当前的失败情况。完成标准是可以移除 JRE System Library,并且 CTAP2.java 能够在没有冲突的标准 Exception 类的情况下构建。

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

评估

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

把新 issue 发到你的邮箱

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