java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by ChrisFromFreeMind, 1 year ago
jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)
java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)
at net.sourceforge.offroad.OsmWindow.printClassPath(OsmWindow.java:904)
at net.sourceforge.offroad.OsmWindow.getResource(OsmWindow.java:921)
at net.sourceforge.offroad.OsmWindow.loadStrings(OsmWindow.java:812)
at net.sourceforge.offroad.OsmWindow.initStrings(OsmWindow.java:778)
at net.sourceforge.offroad.OsmWindow.(OsmWindow.java:730)
at net.sourceforge.offroad.OsmWindow.getInstance(OsmWindow.java:989)
at net.sourceforge.offroad.OsmWindow.main(OsmWindow.java:706)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.