Community
Participate
Working Groups
java.lang.IllegalStateException at org.aspectj.weaver.bcel.ClassPathManager$JImageEntry.<init>(ClassPathManager.java:332) at org.aspectj.weaver.bcel.ClassPathManager.addPath(ClassPathManager.java:110) at org.aspectj.weaver.bcel.ClassPathManager.<init>(ClassPathManager.java:84) at org.aspectj.weaver.bcel.BcelWorld.<init>(BcelWorld.java:285) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:841) a ... lipse.core.internal.jobs.Worker.run(Worker.java:63) Compile error: IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
IDE: eclipse-jee-2018-09-win32-x86_64 Java: jdk-11.0.1
The illegalstateexception should include a further root exception indicating the cause, do you have that? Probably further down the stacktrace.
Created attachment 276626 [details] errorLog Eclipse error log for thrown exception.
(In reply to Andrew Clement from comment #2) > The illegalstateexception should include a further root exception indicating > the cause, do you have that? Probably further down the stacktrace. Hello, added it as attachment. Thank you for fast reply.
Yesterday I installed Eclipse 2018-12 with AJDT from the 4.8 developer update channel (found nothing newer). AspectJ compiler ist 1.9.2. Eclipse runs under JDK 11.0.2. Compiling with JDK 8 works, but not with JDK 11. So either I set up the JDK wrong (there is only one JAR file in JDK 11, I have no idea about Java 9+ JDK structure because until yesterday I worked with JDK 8) or something is wrong with the compiler or AJDT. This error is shown whenever I try to recompile any of my AspectJ projects: There are no core dumps, the failure seems to happen very early. java.lang.IllegalStateException at org.aspectj.weaver.bcel.ClassPathManager$JImageEntry.<init>(ClassPathManager.java:332) at org.aspectj.weaver.bcel.ClassPathManager.addPath(ClassPathManager.java:110) at org.aspectj.weaver.bcel.ClassPathManager.<init>(ClassPathManager.java:84) at org.aspectj.weaver.bcel.BcelWorld.<init>(BcelWorld.java:285) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:841) a ... lipse.core.internal.jobs.Worker.run(Worker.java:63) Compile error: IllegalStateException thrown: Unexpectedly unable to initialize a JRT filesystem
Alexander - are you absolutely sure your eclipse is running on Java11? The error indicates the jrt filesystem wasn't accessible on the JDK eclipse was on. This will happen if attempting to access jrt on Java8. But it should be fine on Java11. I've created a new dev build of AJDT but I'm not sure it'll help you. I put in a guard to say dont try to access jrt if you are on < Java9 but that just pushes the problem later. If you can't access jrt then you'll see lots of problems with 'cant find object/etc'. If your Eclipse really is on Java11, we'll have to dig a bit deeper.
I apologise, Eclipse was running on Java 8 even though my JAVA_HOME and path point to Java 11. Somehow the installer thought it should add the path to the still installed JRE 8 to eclipse.ini, which was kind of unexpected. I did not see the forest for the trees because AJDT was not working and still isn't, but now for other reasons.
No problem, glad it was something we understand. As I mentioned on the mailing list there is a 410/dev/update site now, give it a go.