Closed smack42 closed 6 years ago
The application starter inside of "start.jar" doesn't work in Java 10. Error message is:
Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
at org.appstart.Starter.main(Starter.java:75)
Apparently this is caused by a change that was part of Java 9: http://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html
The application class loader is no longer an instance of java.net.URLClassLoader (an implementation detail that was never specified in previous releases). Code that assumes that ClassLoader::getSytemClassLoader returns a URLClassLoader object will need to be updated. Note that Java SE and the JDK do not provide an API for applications or libraries to dynamically augment the class path at run-time.
btw. the application starter we're using is this one: https://code.google.com/archive/p/appstart/ https://github.com/neophob/appstart (a fork of the one above)
Updated appstart fixes this issue https://github.com/smack42/appstart
Published preview version for testing of the fix for this issue. https://github.com/smack42/DriftingDroids/releases/download/1.3.6-dev_2018-04-21/DriftingDroids_1.3.6-dev_2018-04-21.zip
Successfully tested using:
solved by release 1.3.6 https://github.com/smack42/DriftingDroids/releases
It was reported today by e-mail that DriftingDroids doesn't run on Windows 10 systems using Java 10.