Failed to generate Gui Source with System JAXB

18 views
Skip to first unread message

Mark Bolduc

unread,
Jan 10, 2020, 4:17:31 PM1/10/20
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11
Desktop OS Windows 10 Pro
Simulator Latest
Device Gui Builder

Added a Container using Gui Builder then got following error on compile.

Attempting to generate GUI sources for C:\Src1\ShopServiceAsst\AstcTechMobileApp\res\guibuilder\com\astc\a3tech\A3HomePage.gui with System JAXB
Failed to generate Gui Source with System JAXB.  Will attempt using bundled JAXB.
C:\Src1\ShopServiceAsst\AstcTechMobileApp\build.xml:523:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/model/annotation/AnnotationReader
 at com.codename1.build.client.GenerateGuiSources.generateGuiSource(GenerateGuiSources.java:294)
 at com.codename1.build.client.GenerateGuiSources.generateGuiSource(GenerateGuiSources.java:246)
 at com.codename1.build.client.GenerateGuiSources.execute(GenerateGuiSources.java:216)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
 at jdk.internal.reflect.GeneratedMethodAccessor2230.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:567)
 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
 at org.apache.tools.ant.Task.perform(Task.java:350)
 at org.apache.tools.ant.Target.execute(Target.java:449)
 at org.apache.tools.ant.Target.performTasks(Target.java:470)
 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
 at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
 at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574)
 at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)

Thoughts?

Regards

Steve Hannah

unread,
Jan 10, 2020, 5:25:35 PM1/10/20
to codenameone...@googlegroups.com
This is related to JDK removing JAXB in JDK9.  We have some workarounds in place to deal with this, but it appears they aren't working here.  For now, workaround this by using JDK8.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/9850a204-0a03-4269-87d3-20b52024ed48%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages