[Solved] UMS on Ubuntu 18.04 and derivatives
Posted: Mon Jul 02, 2018 5:29 pm
I just wanted to post this so that if anyone else ran into the same problems I had they could find out what the problem is. I didnt know if i should post here or on git, but figured it wasnt technically a bug and visibility is probably? better here.
I recently switched from minidlna to UMS for transcoding to my xbox360. I was running 17.10 artful which installs openjdk8 by default. No problems.
I upgraded to 18.04 Bionic and UMS stopped working. It wouldnt even launch. I reinstalled my jdk. Still nothing. Redownloaded. Nothing. Deleted .config, still nothing.
I assumed the upgrade broke it but couldn't figure out why. I launched the program from a terminal because the logs didn't even show anything. Terminal output was:
I googled this error and got some Bionic reviews talking about how *buntu was changing jdk to 10, then realized it had installed jdk 11 during the upgrade. Program worked fine after I removed that, but apparently this is the new default install option instead of 10.
Here's some articles talking about it. I don't know if something will break without jdk 11... I am on kubuntu/plasma. I guess I'll see.
https://www.phoronix.com/scan.php?page= ... nJDK-Plans
https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes
Hopefully this post saves someone some effort. I figure if this is the new default, youre going to get more people running into this problem and I didn't see anyone else posting about it. I would hate for someone to give up on the program when the fix is easy. Also, thanks for the work, nice program. I appreciate a GUI program WITH a GUI config option.
I recently switched from minidlna to UMS for transcoding to my xbox360. I was running 17.10 artful which installs openjdk8 by default. No problems.
I upgraded to 18.04 Bionic and UMS stopped working. It wouldnt even launch. I reinstalled my jdk. Still nothing. Redownloaded. Nothing. Deleted .config, still nothing.
I assumed the upgrade broke it but couldn't figure out why. I launched the program from a terminal because the logs didn't even show anything. Terminal output was:
Code: Select all
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:801)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:699)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:622)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at net.pms.PMS.main(PMS.java:1145)
Caused by: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 10 more
Here's some articles talking about it. I don't know if something will break without jdk 11... I am on kubuntu/plasma. I guess I'll see.
https://www.phoronix.com/scan.php?page= ... nJDK-Plans
https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes
Hopefully this post saves someone some effort. I figure if this is the new default, youre going to get more people running into this problem and I didn't see anyone else posting about it. I would hate for someone to give up on the program when the fix is easy. Also, thanks for the work, nice program. I appreciate a GUI program WITH a GUI config option.