scelight icon indicating copy to clipboard operation
scelight copied to clipboard

Crashing on startup with latest JDK on macos

Open akamensky opened this issue 6 years ago • 4 comments

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.

akamensky avatar May 26 '19 07:05 akamensky

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.

icza avatar May 27 '19 07:05 icza

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

septagram avatar Oct 19 '19 09:10 septagram

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.

icza avatar Oct 19 '19 22:10 icza

I could make the code base Java 11 compatible

CuteSC2 avatar Jul 05 '22 20:07 CuteSC2