If you are experiencing an issue please mention the full platform your
issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 12
Desktop OS Windows 10 Pro
Simulator Latest
Device NetBeans 12 Builds
Installing Netbeans 12 with JDK 9 is causing the following build error on
first attempt, then when it fails, the secont buils request succeeds.
I know that you have acknowledged this and have indicated using JDK 8,
however I would ask when do tou suspect this will be addressed?
Regards.
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.GeneratedMethodAccessor265.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)
Caused by: java.lang.NoClassDefFoundError:
com/sun/xml/bind/v2/model/annotation/AnnotationReader
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at
org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128)
at
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1296)
at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1350)
at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1313)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3172)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3313)
at java.base/java.lang.Class.getMethod0(Class.java:3299)
at java.base/java.lang.Class.getMethod(Class.java:2112)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:258)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:447)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
at
com.codename1.build.client.GenerateGuiSources.generateGuiSource_(GenerateGuiSources.java:301)
at
com.codename1.build.client.GenerateGuiSources.access$000(GenerateGuiSources.java:32)
at
com.codename1.build.client.GenerateGuiSources$1.run(GenerateGuiSources.java:272)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.bind.v2.model.annotation.AnnotationReader
at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1362)
at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1313)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 22 more
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/f833ef6d-fafe-4301-b6cd-b534247f7f10o%40googlegroups.com.