redhat-developer / redhat-developer/vscode-java

Removing the JRE System Library from Classpath

Aperta
#2,084 3 commenti 6 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

preferences ux
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riprodurre il problema con l’esempio collegato VivoKey/vk-u2f, concentrandosi su CTAP2.java e sul suo utilizzo della libreria JavaCard. Esaminare come è configurato il classpath del progetto Java ed eseguire la build del progetto per stabilire il fallimento attuale. Il lavoro è completato quando è possibile rimuovere JRE System Library e CTAP2.java viene compilato senza la classe standard Exception in conflitto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.