Page 1 of 1

Java error loading SDK

Posted: Wed Jul 18, 2018 12:55 am
by sderrick
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

Re: Java error loading SDK

Posted: Wed Jul 18, 2018 7:21 am
by sderrick
I backed my jdk out to java 1.8 and the problem stopped.

Scott

Re: Java error loading SDK

Posted: Wed Jul 18, 2018 8:05 am
by Radu
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

Re: Java error loading SDK

Posted: Wed Jul 18, 2018 6:05 pm
by sderrick
OK, we'll stay with 1.8 until you give the all clear.