Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing on startup with latest JDK on macos #21

Open
akamensky opened this issue May 26, 2019 · 4 comments
Open

Crashing on startup with latest JDK on macos #21

akamensky opened this issue May 26, 2019 · 4 comments

Comments

@akamensky
Copy link

akamensky commented May 26, 2019

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
Copy link
Owner

icza commented May 27, 2019

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
Copy link

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

@icza
Copy link
Owner

icza commented Oct 19, 2019

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
Copy link

CuteSC2 commented Jul 5, 2022

I could make the code base Java 11 compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants