Java error loading SDK
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Java error loading SDK
Just tried to use our SDK editor and had this come up in the console???
On stack overflow I saw this..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
ScottIn 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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Java error loading SDK
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Java error loading SDK
Radu,
I completely forgot about the com.sun.java.swing.plaf.windows.WindowsLookAndFeel issue on building with jdk's newer than 1.8.
I was fooling around with a new build machine and set the source to a jdk 11 and saw the error.
Still restricted to 1.8 for the sdk?
thanks,
Scott
I completely forgot about the com.sun.java.swing.plaf.windows.WindowsLookAndFeel issue on building with jdk's newer than 1.8.
I was fooling around with a new build machine and set the source to a jdk 11 and saw the error.
Still restricted to 1.8 for the sdk?
thanks,
Scott
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Java error loading SDK
Hi Scott,
Starting with version 26 (Autumn this year) our entire code base (including the SDK) will be built with Java 11 so you will need Java 11 or newer to use the SDK.
Regards,
Radu
Starting with version 26 (Autumn this year) our entire code base (including the SDK) will be built with Java 11 so you will need Java 11 or newer to use the SDK.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Java error loading SDK
Radu,
I am planning on including a jre with our IDE that has the author component in it to eliminate the compatibility problems.
Right now we are restricted to using jre-1.8. Anything newer and it fails because of the java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel problem.
Your post indicates that will no longer be the case with the release of Author 26? At that point I must use(bundle) jre-11 or newer? Is that correct?
thanks,
Scott
I am planning on including a jre with our IDE that has the author component in it to eliminate the compatibility problems.
Right now we are restricted to using jre-1.8. Anything newer and it fails because of the java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel problem.
Your post indicates that will no longer be the case with the release of Author 26? At that point I must use(bundle) jre-11 or newer? Is that correct?
thanks,
Scott
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service