Skip to content
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

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader #248

Open
avalitan opened this issue Feb 20, 2020 · 2 comments

Comments

@avalitan
Copy link

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at com.net2plan.internal.SystemUtils.getClasspath(SystemUtils.java:173) at com.net2plan.internal.SystemUtils.configureEnvironment(SystemUtils.java:153) at com.net2plan.gui.GUINet2Plan.main(GUINet2Plan.java:518)

java --version openjdk 11.0.6 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10) OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)

@zombie12344321
Copy link

Did you ever figure this issue out?

@robinchrist
Copy link

I had the same issue. Try with Java 8, anything newer doesn't seem to work.

sudo apt install openjdk-8-jre
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar Net2Plan.jar

For Ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants