elki-project / elki

ELKI Data Mining Toolkit
https://elki-project.github.io/
GNU Affero General Public License v3.0
780 stars 321 forks source link

java.lang.ClassCastException when running elki 7.0.1 on OpenJDK #55

Closed haidelber closed 5 years ago

haidelber commented 5 years ago

I switched from Oracle JDK 8.x to Open JDK 11.x recently, now my simulation based on ELKI doesn't work any more. The problem seems to be located in ELKIServiceRegistry

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 de.lmu.ifi.dbs.elki.utilities.ELKIServiceRegistry.(ELKIServiceRegistry.java:53)

I guess I need to switch back to Oracle Java in the meanwhile.

kno10 commented 5 years ago

This has long been fixed in the git version. Please use the latest github version.

Duplicate of #51