1
Bug Reports & Support / (Ubuntu 20.04) bundled jre crashes on startup - xstream not found
« on: October 17, 2020, 01:13:39 PM »
So recently I ended up having to reinstall my operating system, and in the process upgraded from Ubuntu 18.04 to 20.04; since it was a new set up I figured I'd try the default .sh script that comes with starsector to see if it worked properly, since it wasn't working before. Previously it would crash instantly upon trying to launch, something about being unable to find the java classpath iirc. This has improved since I last tested it! It loads... and then crashes when trying to get to the main menu.
Inexplicably the error is that it cannot find the packaged xstream, which... well I'd have expected it to crash earlier if that were the case. This seems even more odd because both versions of the shell script I'm using point at the same spot, and the version of the script which uses the system default java runs just fine.
Anyway, while this has been worked around I figured I might as well report it since having to tinker with this kind of thing to resolve it seems like a potential future problem.
Inexplicably the error is that it cannot find the packaged xstream, which... well I'd have expected it to crash earlier if that were the case. This seems even more odd because both versions of the shell script I'm using point at the same spot, and the version of the script which uses the system default java runs just fine.
Spoiler
Code
64624 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStreamException
java.lang.NoClassDefFoundError: com/thoughtworks/xstream/XStreamException
at com.fs.starfarer.title.ooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.updateContinueButtonState(Unknown Source)
at com.fs.starfarer.title.ooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.float.public(Unknown Source)
at com.fs.starfarer.title.ooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.<init>(Unknown Source)
at com.fs.starfarer.title.OoOO.<init>(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.createUI(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.prepare(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.XStreamException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 11 more
[close]
Anyway, while this has been worked around I figured I might as well report it since having to tinker with this kind of thing to resolve it seems like a potential future problem.