Java error loading SDK

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
sderrick
Posts: 238
Joined: Sat Jul 10, 2010 4:03 pm

Java error loading SDK

Post by sderrick » Wed Jul 18, 2018 12:55 am

Just tried to use our SDK editor and had this come up in the console???
java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel
at ro.sync.util.h.f(Unknown Source)
at ro.sync.ui.application.cc.zw(Unknown Source)
at ro.sync.ui.application.cc.<init>(Unknown Source)
at ro.sync.exml.l.d.<init>(Unknown Source)
at ro.sync.exml.l.d.lpi(Unknown Source)
at ro.sync.exml.l.c.<init>(Unknown Source)
at ro.sync.ecss.extensions.api.component.AuthorComponentFactory$2.<init>(Unknown Source)
at ro.sync.ecss.extensions.api.component.AuthorComponentFactory.init(Unknown Source)
at ro.sync.ecss.extensions.api.component.AuthorComponentFactory.init(Unknown Source)
at myGroup.mbepTabbedView.<init>(mbepTabbedView.java:156)
at myGroup.mbepEditorApplet$3.run(mbepEditorApplet.java:268)
Caused by: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
at jdk.deploy@10.0.1/com.sun.deploy.security.DeployURLClassLoader.findClass(DeployURLClassLoader.java:302)
at jdk.javaws@10.0.1/com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:382)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at jdk.javaws@10.0.1/com.sun.jnlp.JNLPClassLoader.loadClass(JNLPClassLoader.java:136)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 11 more
On stack overflow I saw this..
In JDK 9 with modularization the L&Fs classes are not exported. In my project we are extending this class: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Scott

sderrick
Posts: 238
Joined: Sat Jul 10, 2010 4:03 pm

Re: Java error loading SDK

Post by sderrick » Wed Jul 18, 2018 7:21 am

I backed my jdk out to java 1.8 and the problem stopped.

Scott

Radu
Posts: 6539
Joined: Fri Jul 09, 2004 5:18 pm

Re: Java error loading SDK

Post by Radu » Wed Jul 18, 2018 8:05 am

Hi Scott,

Oxygen (and Author Component also) officially only supports only Java 1.8.
But we put some work into this recently.
What version of the Author Component are you using? If you switch to using our 20.1 SDK things should improve and you may be able to get it to work also with Java 9. But if Java 9 is not compulsory for your project, you should stick to Java 1.8 for now.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

sderrick
Posts: 238
Joined: Sat Jul 10, 2010 4:03 pm

Re: Java error loading SDK

Post by sderrick » Wed Jul 18, 2018 6:05 pm

OK, we'll stay with 1.8 until you give the all clear.

Post Reply