mojira.dev
MCL-3691

Launcher does not start under Java 9

Expected: Normaly Functioning Launcher

Actual:
Launcher throws a stacktrace during the bootstrap phase

Notes:
GarbageCollectorExtImpl was moved from sun.management, to java.management This causes the launcher to crash with a classnotfoundexception.

Workaround: Use java 8 (either via JAVA_HOME, or the native launcher on windows)

Suggested Fix:
Bit of a tricky one, if you check the system vars to see what java you are on, you can reflect the field into existence, but that's kinda hacky.
You could also us a gerericized class, that gets passed witch-ever exists.
Or finally, you could just provide two different launcher packs, but since java does not really have conditional compilation that would be really messy and probably be alot of code for a simple fix.

TL;DR: It's Oracle's fault.

Attachments

Comments 3

Attached a transcript of the launcher's death under JRE9 on Windows 7.

As I look at this stacktrace, I realize it's probably the fault of an external library.. (Hello Log4J)

There is no released Java 9.
Will be released in late 2016

Aaron Haun

(Unassigned)

Unconfirmed

Retrieved