You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removing the JRE System Library from Classpath #2084
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.
Reacted by Benoit, Jerome Leroux, balix-microej, dbedin-microej, tdelhomenie-microej and Amin HAJJI
Currently there is no user interface to achieve that. But you can try to open the .classpath file, and then remove <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-XX">
I've got the same issue when loading a MicroEJ project (which does not depend on JRE). We're using gradle, so it seems that there is no .classpath to edit.
You'll find it under the Java Language Server workspace.
First, execute the Java: Open Java Dashboard command
click on the Reveal link after the Language Server Workspace
Navigate to [...]/redhat.java/jdt_ws/.metadata/.plugins/org.eclipse.core.resources/.projects/[project-name]/. There, you'll find the .classpath to edit
Activity
jdneo commentedon Sep 2, 2021
Currently there is no user interface to achieve that. But you can try to open the
.classpathfile, and then remove<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-XX">bguedas commentedon Mar 22, 2024
I've got the same issue when loading a MicroEJ project (which does not depend on JRE). We're using gradle, so it seems that there is no
.classpathto edit.fbricon commentedon Feb 16, 2026
There's always a .classpath to edit ;-)
You'll find it under the Java Language Server workspace.
Java: Open Java DashboardcommandReveallink after the Language Server Workspace[...]/redhat.java/jdt_ws/.metadata/.plugins/org.eclipse.core.resources/.projects/[project-name]/. There, you'll find the .classpath to edit