New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while resolving class file for ... via JavaSE-19 #356
Comments
|
I get this same error using with a Java 17 JRE. The problem is fundamentally caused by a bad assumption in the following code. : Lines 169 to 178 in 8312046
In particular it assumes that the JRE is a JDK (with java.home/mods/*.jmod) and not a JRE as produced by jlink (with java.home/lib/modules) The following also makes that same bad assumption but here there is an existence test: Lines 121 to 136 in 8312046
The class should be using logic similar to what's in org.eclipse.jdt.internal.compiler.util.JRTUtil. I.e., using java.nio.file.FileSystem which could also be used for |
|
Note 1: Ideally PDE would simply re-use Note 2: PDE & JDT as part of the Eclipse SDK both require Java SDK to work properly, JRE is not enough, and that is not new. |
then oomph should install JDK instead. |
|
I'm investigating how to implement this correctly and indeed, closing the JRT file system is bad! I'm not sure the basis of your assertion that a JDK is required. All the packages including the Java package ship with a JustJ JRE 17 and hence the configured JRE in any new workspace by default looks like this: One can even step into the JRE's source code: What other things do you believe don't function properly, because packages have been shipping like this for several releases and no one ever complained that something doesn't work... |
|
I remember we had recurring troubles in JDT / debug area, where JRE was not sufficient, same with CtSym.java code not finding proper release info because "ct.sym" file was missing in JRE. What is packaged into "justj full" bundle? Isn't that something more then just JRE? |
|
I know there were problems but as far as I know, there are no longer problems, other than this new one that I didn't know about. The ct.sym is present: All the modules are present in the full JRE, but are packaged differently, and the jrt file system doesn't care how it's packaged. The src.zip is included too so that debugging works well: I'll come up with PR... |
|
I believe the issues we saw before were seen by users of system JRE's on Linux / Windows that were installed manually/via system updates. |
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. eclipse-pde#356
Instead of assuming that modules are represented as *.jmod, which is only the case for a JDK but not for a JRE, the jrt file system should be used. In addition, jar files should use the jar file system, to uniformly handle both cases. The JRT approach also allows loading all the modules of the JDK/JRE not just the java.base module. Classes from the JDK will no longer be prefixed with classes.*. #356


with JRE 19 i get errors in an oomphed workspace
The text was updated successfully, but these errors were encountered: