Java exception when installing on Kubuntu 18.04

For help and support with Linux-specific issues
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Kilgorestout
Posts: 1
Joined: Sun Jun 24, 2018 7:17 am

Java exception when installing on Kubuntu 18.04

Post by Kilgorestout » Sun Jun 24, 2018 7:40 am

I am attempting to install UMS 7.1.0 on Kubuntu 18.04 and I get the following Java exception:

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

I have installed and updated Java 8 and I am not sure what else to do. Any help would be appreciated. Thanks

Nadahar
Posts: 1401
Joined: Tue Jun 09, 2015 5:57 pm

Re: Java exception when installing on Kubuntu 18.04

Post by Nadahar » Fri Aug 10, 2018 2:04 pm

You don't get that error with Java 8. You have Java 9 or 10 installed. Install Java 8 instead, and you should be fine.

Post Reply