icza / scelight

The source code of the Scelight project with all its modules.
https://sites.google.com/site/scelight/
Apache License 2.0
123 stars 19 forks source link

Crashing on startup with latest JDK on macos #21

Open akamensky opened 5 years ago

akamensky commented 5 years ago

Not a Java expert. Installed JDK 12.x from Oracle website and get this on startup:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXB
    at hu.sllauncher.LConsts.<clinit>(LConsts.java:52)
    at hu.sllauncher.ScelightLauncher.setUserAgent(ScelightLauncher.java:112)
    at hu.sllauncher.ScelightLauncher.main(ScelightLauncher.java:84)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXB
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    ... 3 more
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...6 completed.
icza commented 5 years ago

It looks newer Java versions removed the classes Scelight uses from them, which causes your error.

Right now the only solution is to use an old Java version.

In the future I try to use something else instead of the removed classes.

septagram commented 4 years ago

Having the same issue here. @icza can you please tell me the latest Java SDK version that's confirmed to work fine?

icza commented 4 years ago

As far as I know, the JAXB API was removed from Java 11, so you should be fine with Java 10. Java 8 is working for sure, Java 9 and Java 10 should be able to run already compiled apps.

CuteSC2 commented 2 years ago

I could make the code base Java 11 compatible