The project was created before CEF update or other ones. Do you think I have to create it again? What if I have to recreate it multiple times for every problem shows up? Is it possible to "clean" the project somehow? Il giorno sabato 29 agosto 2020 alle 07:43:55 UTC+2 Shai Almog ha scritto:
> That is odd. Can you think of a reason why your project is different from > the test project? > > On Friday, August 28, 2020 at 11:18:50 AM UTC+3 P5music wrote: > >> No, I did not use that function at all in my project. >> >> Il giorno venerdì 28 agosto 2020 alle 06:59:43 UTC+2 Shai Almog ha >> scritto: >> >>> Do you use the GUI builder in the project? >>> Did you try it in the past? >>> That's probably the main difference as this bug relates to the GUI >>> builder which is the only part that uses JAXB. >>> On Thursday, August 27, 2020 at 6:53:53 PM UTC+3 [email protected] >>> wrote: >>> >>>> Generate the template code in your clean project, copy to your actual >>>> project. Problem solved until next time. >>>> >>>> On Thursday, August 27, 2020 at 1:32:07 AM UTC-7 P5music wrote: >>>> >>>>> What you both say works for a clean project but not for my app >>>>> project. Those errors are issued and a pink message says "project needs >>>>> to >>>>> be compiled first" >>>>> Thanks >>>>> >>>>> Il giorno giovedì 27 agosto 2020 alle 04:28:34 UTC+2 Shai Almog ha >>>>> scritto: >>>>> >>>>>> Try creating a clean project and create a GUI builder form in that >>>>>> project. Then try to open it in the GUI builder and build it. This might >>>>>> trigger the jaxb download for that project and might let you generate a >>>>>> native interface there. I'm not sure if it will solve the other project >>>>>> but >>>>>> you might be able to use this as a workaround by copying the native code >>>>>> from there. >>>>>> On Wednesday, August 26, 2020 at 12:13:08 PM UTC+3 P5music wrote: >>>>>> >>>>>>> You seem to be right but I do not know what has been relocated. I do >>>>>>> not think I relocated something, maybe I added some classpaths? >>>>>>> What could I have done? >>>>>>> >>>>>>> Il giorno martedì 25 agosto 2020 alle 18:28:25 UTC+2 >>>>>>> [email protected] ha scritto: >>>>>>> >>>>>>>> I think there's a problem if you have manually relocated some >>>>>>>> components - the "generate" code >>>>>>>> uses some canned/expected paths instead of the actual classpath. >>>>>>>> It will work if you stick >>>>>>>> your native interface definitions into a virgin project. >>>>>>>> >>>>>>>> On Monday, August 24, 2020 at 8:45:06 PM UTC-7 Shai Almog wrote: >>>>>>>> >>>>>>>>> Thanks. Please file an issue on that. This is due to JDK 9's >>>>>>>>> disastrous breaking down of the JVM. We still have a few dependencies >>>>>>>>> left >>>>>>>>> such as JAXB and JavaFX. Hopefully we'll be able to completely remove >>>>>>>>> both. >>>>>>>>> In the interim it seems that our workaround for the former failed on >>>>>>>>> your >>>>>>>>> setup. >>>>>>>>> >>>>>>>>> On Monday, August 24, 2020 at 11:45:36 AM UTC+3 P5music wrote: >>>>>>>>> >>>>>>>>>> openjdk version "11.0.8" 2020-07-14 >>>>>>>>>> OpenJDK Runtime Environment (build >>>>>>>>>> 11.0.8+10-post-Ubuntu-0ubuntu120.04) >>>>>>>>>> OpenJDK 64-Bit Server VM (build >>>>>>>>>> 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing) >>>>>>>>>> IntelliJ IDEA 2020.2 (Community Edition) >>>>>>>>>> Build #IC-202.6397.94, built on July 27, 2020 >>>>>>>>>> Runtime version: 11.0.7+10-b944.20 amd64 >>>>>>>>>> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. >>>>>>>>>> Linux 5.4.0-42-generic >>>>>>>>>> GC: ParNew, ConcurrentMarkSweep >>>>>>>>>> Memory: 949M >>>>>>>>>> Cores: 4 >>>>>>>>>> Non-Bundled Plugins: com.codename1.plugin.intellij >>>>>>>>>> Current Desktop: ubuntu:GNOME >>>>>>>>>> >>>>>>>>>> Il giorno lunedì 24 agosto 2020 alle 03:50:17 UTC+2 Shai Almog ha >>>>>>>>>> scritto: >>>>>>>>>> >>>>>>>>>>> Which JDK/IDE combination are you using? >>>>>>>>>>> >>>>>>>>>>> On Sunday, August 23, 2020 at 1:18:24 PM UTC+3 P5music wrote: >>>>>>>>>>> >>>>>>>>>>>> I am adding some native iOS functionality to my CodenameOne app. >>>>>>>>>>>> I am just at the beginning. >>>>>>>>>>>> I created this Interface >>>>>>>>>>>> >>>>>>>>>>>> import com.codename1.system.NativeInterface; >>>>>>>>>>>> >>>>>>>>>>>> public interface VoiceInput extends NativeInterface { >>>>>>>>>>>> >>>>>>>>>>>> public boolean isSupported(); >>>>>>>>>>>> >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> This is the bare minimum. >>>>>>>>>>>> When I try to run "Generate Native Access" from the menu I get >>>>>>>>>>>> this, what's wrong? Thanks in advance. >>>>>>>>>>>> >>>>>>>>>>>> -pre-init >>>>>>>>>>>> Generating GUI sources >>>>>>>>>>>> ... >>>>>>>>>>>> Processing GUI builder file: >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/src/com/myappcp/app/OneContainer.java >>>>>>>>>>>> Attempting to generate GUI sources for >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/res/guibuilder/com/myappcp/app/OneContainer.gui >>>>>>>>>>>> >>>>>>>>>>>> with System JAXB >>>>>>>>>>>> ... >>>>>>>>>>>> Processing GUI builder file: >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/src/com/myappcp/app/OneContainer.java >>>>>>>>>>>> Attempting to generate GUI sources for >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/res/guibuilder/com/myappcp/app/OneContainer.gui >>>>>>>>>>>> >>>>>>>>>>>> with System JAXB >>>>>>>>>>>> Failed to generate Gui Source with System JAXB. Will attempt >>>>>>>>>>>> using bundled JAXB. >>>>>>>>>>>> ago 23, 2020 10:02:55 AM >>>>>>>>>>>> com.codename1.build.client.GenerateGuiSources generateGuiSource >>>>>>>>>>>> INFORMAZIONI: null >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/build.xml:529: >>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: >>>>>>>>>>>> com/sun/xml/bind/v2/model/annotation/AnnotationReader >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/build.xml:529: >>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: >>>>>>>>>>>> com/sun/xml/bind/v2/model/annotation/AnnotationReader >>>>>>>>>>>> /home/pc/IdeaProjects/myappcp/build.xml:529: >>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: >>>>>>>>>>>> com/sun/xml/bind/v2/model/annotation/AnnotationReader >>>>>>>>>>>> Ant build completed with 3 errors and 2 warnings in 1s at >>>>>>>>>>>> 23/08/20, 10:02 >>>>>>>>>>>> >>>>>>>>>>>> -- 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/319e6321-e093-465e-910d-4673523dffcan%40googlegroups.com.
