redhat-developer / redhat-developer/vscode-java

Removing the JRE System Library from Classpath

Offen
#2,084 3 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

preferences ux
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduzieren Sie das Problem mit dem verknüpften VivoKey/vk-u2f-Beispiel, wobei der Fokus auf CTAP2.java und dessen Verwendung der JavaCard-Bibliothek liegt. Untersuchen Sie, wie der Klassenpfad des Java-Projekts konfiguriert ist, und führen Sie den Projekt-Build aus, um den aktuellen Fehler festzustellen. Erledigt ist die Aufgabe, wenn die JRE System Library entfernt werden kann und CTAP2.java ohne die in Konflikt stehende standardmäßige Exception-Klasse gebaut wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java, vscode
Bereich
developer-experience, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
32/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.