Re: [codenameone-discussions] CEF BrowserComponent - Exception in thread "AWT-EventQueue-0"
In Chrome I see that control in a very big size but it is tiny in fact, with just the scrollbars, but the editor is inside, I see some little area of it. The BrowserComponent has not expanded like in JavaFX. Please see the attached image. In general I would like to know how to set the size of a component to "wrap_content" or "match_parent", unless I am missing something obvious, my fault. Thanks in advance Il giorno mercoledì 5 agosto 2020 20:47:39 UTC+2, Steve Hannah ha scritto: > > While your app is open, you can debug the web view in Chrome by going to > http://localhost:8088 > > That might offer you some clues as to what is going wrong. > > > > On Wed, Aug 5, 2020 at 11:28 AM 'Angelo Maci' via CodenameOne Discussions < > codenameone...@googlegroups.com > wrote: > >> My Codename app has a BrowserComponent with a text editor inside. When >> JavaFX was used the editor was displayed but had some issues. >> Now I am running the same code with CEF support. I had to copy the >> .idea-IC-201.7223.91/jbr/lib/libjawt.so file into the >> /home/pc/.codenameone/cef/lib/linux64 folder to get the BrowserComponent >> loaded. >> Now I can see just horizontal and vertical scrollbar, and no content. >> In log I get this: >> >> CEF Args: [--disable-gpu, --disable-software-rasterizer, >> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, >> --device-scale-factor=4, --force-device-scale-factor=4, >> --autoplay-policy=no-user-gesture-required, >> --enable-usermedia-screen-capturing] >> Using: >> JCEF Version = 83.4.0.260 >> CEF Version = 83.4.0 >> Chromium Version = 83.0.4103.106 >> initialize on Thread[AWT-EventQueue-0,6,main] with library path >> /home/pc/.codenameone/cef/lib/linux64 >> Added scheme search:// >> Added scheme client:// >> Added scheme cn1stream:// >> >> DevTools listening on ws:// >> 127.0.0.1:8088/devtools/browser/acb758a2-831d-41c5-9102-d61c9fbadc52 >> AppHandler.stateHasChanged: NEW >> AppHandler.stateHasChanged: INITIALIZING >> AppHandler.stateHasChanged: INITIALIZED >> CEF Args: [--disable-gpu, --disable-software-rasterizer, >> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, >> --device-scale-factor=4, --force-device-scale-factor=4, >> --autoplay-policy=no-user-gesture-required, >> --enable-usermedia-screen-capturing] >> Setting URL but not ready https://cn1app/streams/1 >> Running ready callbacks >> Running ready callbacks >> Setting url https://cn1app/streams/1 >> Exception in thread "AWT-EventQueue-0" Exception in thread >> "AWT-EventQueue-0" Stream was closed >> Address changed to https://cn1app/streams/1 >> onload >> Exception in thread "AWT-EventQueue-0" Exception in thread >> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in >> thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception >> in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" >> Exception in thread "AWT-EventQueue-0" Exception in thread >> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" >> >> my system is >> >> 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 >> >> >> >> -- >> 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-discussions+unsubscr...@googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com >> >> <https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com?utm_medium=email_source=footer> >> . >> > > > -- > Steve Hannah > Software Developer > Codename One > http://www.codenameone.com > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/86d53160-2b7f-4ed0-b230-1707d7987d3bo%40googlegroups.com.
[codenameone-discussions] CEF BrowserComponent - Exception in thread "AWT-EventQueue-0"
My Codename app has a BrowserComponent with a text editor inside. When JavaFX was used the editor was displayed but had some issues. Now I am running the same code with CEF support. I had to copy the .idea-IC-201.7223.91/jbr/lib/libjawt.so file into the /home/pc/.codenameone/cef/lib/linux64 folder to get the BrowserComponent loaded. Now I can see just horizontal and vertical scrollbar, and no content. In log I get this: CEF Args: [--disable-gpu, --disable-software-rasterizer, --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, --device-scale-factor=4, --force-device-scale-factor=4, --autoplay-policy=no-user-gesture-required, --enable-usermedia-screen-capturing] Using: JCEF Version = 83.4.0.260 CEF Version = 83.4.0 Chromium Version = 83.0.4103.106 initialize on Thread[AWT-EventQueue-0,6,main] with library path /home/pc/.codenameone/cef/lib/linux64 Added scheme search:// Added scheme client:// Added scheme cn1stream:// DevTools listening on ws://127.0.0.1:8088/devtools/browser/acb758a2-831d-41c5-9102-d61c9fbadc52 AppHandler.stateHasChanged: NEW AppHandler.stateHasChanged: INITIALIZING AppHandler.stateHasChanged: INITIALIZED CEF Args: [--disable-gpu, --disable-software-rasterizer, --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, --device-scale-factor=4, --force-device-scale-factor=4, --autoplay-policy=no-user-gesture-required, --enable-usermedia-screen-capturing] Setting URL but not ready https://cn1app/streams/1 Running ready callbacks Running ready callbacks Setting url https://cn1app/streams/1 Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Stream was closed Address changed to https://cn1app/streams/1 onload Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" my system is 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 -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com.
Re: [codenameone-discussions] Re: Failed to create CEF browser - Error in simulator
I run this command find . | grep "libjawt.so" and I found that file. Adding the path to the LD_LIBRARY_PATH environment variable was not helpful, but I copied the file into the /home/pc/.codenameone/cef/lib/linux64/ directory and now the error is gone. I see that a BrowserComponent is created although it's has errors in log. I will open a new discussion for that. Il giorno mercoledì 5 agosto 2020 14:00:25 UTC+2, Steve Hannah ha scritto: > > Here is a post elaborating on my suggestion about adding to LD_LIBRARY_PATH > https://forums.spiralknights.com/en/node/51696 > > You'd probably need to added these to your environment used to launch > intelliJ > > On Wed, Aug 5, 2020 at 2:18 AM 'Angelo Maci' via CodenameOne Discussions < > codenameone...@googlegroups.com > wrote: > >> Instead, I checked, I have >> java -version >> 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) >> >> but the environment variables are empty as I said. >> >> >> Il giorno mercoledì 5 agosto 2020 11:13:00 UTC+2, Angelo Maci ha scritto: >>> >>> JAVA_HOME and LD_LIBRARY_PATH are empty on my system. I have IntelliJ >>> Idea and AndroidStudio installed, but I think I did not install standalone >>> java. >>> What have I to do? >>> >>> Il giorno martedì 4 agosto 2020 14:25:45 UTC+2, Steve Hannah ha scritto: >>>> >>>> It says it can't find libjawt.so, which should be part of your jdk >>>> distribution. I can't seem to reproduce this issue on my system. Perhaps >>>> try adding $JAVA_HOME/lib to your LD_LIBRARY_PATH environment variable. >>>> >>>> Searching on Google for "Unsatisfied Link libjawt.so" brings up lots of >>>> results with people having this error in different contexts with different >>>> libraries on linux, so seems to be a common issue. >>>> >>>> On Tue, Aug 4, 2020 at 1:02 AM 'Angelo Maci' via CodenameOne >>>> Discussions wrote: >>>> >>>>> In my app there is a BrowserComponent in the layout, that was >>>>> displayed in JAVA FX although not properly working. >>>>> >>>>> Il giorno martedì 4 agosto 2020 09:58:50 UTC+2, Angelo Maci ha scritto: >>>>>> >>>>>> If you are experiencing an issue please mention the full platform >>>>>> your issue applies to: >>>>>> 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 >>>>>> >>>>>> CEF has installed. >>>>>> Trying for the first time to run my app on the simulator I get this >>>>>> error in a dialog: "Exception: java.lang.RuntimeException - Failed to >>>>>> create CEF browser". >>>>>> >>>>>> And in the log: >>>>>> >>>>>> Exception: java.lang.RuntimeException - Failed to create CEF browser >>>>>> java.lang.RuntimeException: Failed to create CEF browser >>>>>> at >>>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) >>>>>> at >>>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) >>>>>> at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) >>>>>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331) >>>>>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) >>>>>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1162) >>>>>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) >>>>>> at >>>>>> com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) >>>>>> Caused by: java.lang.reflect.InvocationTargetException >>>>>> at >>>>>> java.desktop/java.awt.EventQu
Re: [codenameone-discussions] Re: Failed to create CEF browser - Error in simulator
Instead, I checked, I have java -version 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) but the environment variables are empty as I said. Il giorno mercoledì 5 agosto 2020 11:13:00 UTC+2, Angelo Maci ha scritto: > > JAVA_HOME and LD_LIBRARY_PATH are empty on my system. I have IntelliJ Idea > and AndroidStudio installed, but I think I did not install standalone java. > What have I to do? > > Il giorno martedì 4 agosto 2020 14:25:45 UTC+2, Steve Hannah ha scritto: >> >> It says it can't find libjawt.so, which should be part of your jdk >> distribution. I can't seem to reproduce this issue on my system. Perhaps >> try adding $JAVA_HOME/lib to your LD_LIBRARY_PATH environment variable. >> >> Searching on Google for "Unsatisfied Link libjawt.so" brings up lots of >> results with people having this error in different contexts with different >> libraries on linux, so seems to be a common issue. >> >> On Tue, Aug 4, 2020 at 1:02 AM 'Angelo Maci' via CodenameOne Discussions < >> codenameone...@googlegroups.com> wrote: >> >>> In my app there is a BrowserComponent in the layout, that was displayed >>> in JAVA FX although not properly working. >>> >>> Il giorno martedì 4 agosto 2020 09:58:50 UTC+2, Angelo Maci ha scritto: >>>> >>>> If you are experiencing an issue please mention the full platform your >>>> issue applies to: >>>> 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 >>>> >>>> CEF has installed. >>>> Trying for the first time to run my app on the simulator I get this >>>> error in a dialog: "Exception: java.lang.RuntimeException - Failed to >>>> create CEF browser". >>>> >>>> And in the log: >>>> >>>> Exception: java.lang.RuntimeException - Failed to create CEF browser >>>> java.lang.RuntimeException: Failed to create CEF browser >>>> at >>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) >>>> at >>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) >>>> at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) >>>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331) >>>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) >>>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1162) >>>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) >>>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) >>>> Caused by: java.lang.reflect.InvocationTargetException >>>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367) >>>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342) >>>> at >>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99) >>>> ... 7 more >>>> Caused by: java.lang.UnsatisfiedLinkError: >>>> /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile >>>> aprire il file oggetto condiviso: File o directory non esistente >>>> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) >>>> at >>>> java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442) >>>> at >>>> java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498) >>>> at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694) >>>> at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640) >>>> at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) >>>> at java.base/java.lang.System.loadLibrary(System.java:1873) >>>> at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24) >>>> at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36) >>>> at org.cef.CefApp.startup(CefApp.java:536) >>>> at
Re: [codenameone-discussions] Re: Failed to create CEF browser - Error in simulator
JAVA_HOME and LD_LIBRARY_PATH are empty on my system. I have IntelliJ Idea and AndroidStudio installed, but I think I did not install standalone java. What have I to do? Il giorno martedì 4 agosto 2020 14:25:45 UTC+2, Steve Hannah ha scritto: > > It says it can't find libjawt.so, which should be part of your jdk > distribution. I can't seem to reproduce this issue on my system. Perhaps > try adding $JAVA_HOME/lib to your LD_LIBRARY_PATH environment variable. > > Searching on Google for "Unsatisfied Link libjawt.so" brings up lots of > results with people having this error in different contexts with different > libraries on linux, so seems to be a common issue. > > On Tue, Aug 4, 2020 at 1:02 AM 'Angelo Maci' via CodenameOne Discussions < > codenameone...@googlegroups.com > wrote: > >> In my app there is a BrowserComponent in the layout, that was displayed >> in JAVA FX although not properly working. >> >> Il giorno martedì 4 agosto 2020 09:58:50 UTC+2, Angelo Maci ha scritto: >>> >>> If you are experiencing an issue please mention the full platform your >>> issue applies to: >>> 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 >>> >>> CEF has installed. >>> Trying for the first time to run my app on the simulator I get this >>> error in a dialog: "Exception: java.lang.RuntimeException - Failed to >>> create CEF browser". >>> >>> And in the log: >>> >>> Exception: java.lang.RuntimeException - Failed to create CEF browser >>> java.lang.RuntimeException: Failed to create CEF browser >>> at >>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) >>> at >>> com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) >>> at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) >>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331) >>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) >>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1162) >>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) >>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) >>> Caused by: java.lang.reflect.InvocationTargetException >>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367) >>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342) >>> at >>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99) >>> ... 7 more >>> Caused by: java.lang.UnsatisfiedLinkError: >>> /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile >>> aprire il file oggetto condiviso: File o directory non esistente >>> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) >>> at >>> java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442) >>> at >>> java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498) >>> at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694) >>> at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640) >>> at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) >>> at java.base/java.lang.System.loadLibrary(System.java:1873) >>> at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24) >>> at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36) >>> at org.cef.CefApp.startup(CefApp.java:536) >>> at >>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:178) >>> at >>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:170) >>> at >>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:167) >>> at >>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:112) >>> at >>> com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:102) >>> at >>> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303) >>> at >>
[codenameone-discussions] Re: Failed to create CEF browser - Error in simulator
In my app there is a BrowserComponent in the layout, that was displayed in JAVA FX although not properly working. Il giorno martedì 4 agosto 2020 09:58:50 UTC+2, Angelo Maci ha scritto: > > If you are experiencing an issue please mention the full platform your > issue applies to: > 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 > > CEF has installed. > Trying for the first time to run my app on the simulator I get this error > in a dialog: "Exception: java.lang.RuntimeException - Failed to create CEF > browser". > > And in the log: > > Exception: java.lang.RuntimeException - Failed to create CEF browser > java.lang.RuntimeException: Failed to create CEF browser > at > com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) > at > com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) > at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) > at com.codename1.ui.Display.processSerialCalls(Display.java:1331) > at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) > at com.codename1.ui.Display.mainEDTLoop(Display.java:1162) > at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) > at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) > Caused by: java.lang.reflect.InvocationTargetException > at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367) > at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342) > at > com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99) > ... 7 more > Caused by: java.lang.UnsatisfiedLinkError: > /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile > aprire il file oggetto condiviso: File o directory non esistente > at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) > at > java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442) > at > java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498) > at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694) > at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640) > at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) > at java.base/java.lang.System.loadLibrary(System.java:1873) > at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24) > at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36) > at org.cef.CefApp.startup(CefApp.java:536) > at > com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:178) > at > com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:170) > at > com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:167) > at > com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:112) > at > com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:102) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303) > at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) > at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) > at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) > at > java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) > at > java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) > CEF Args: [--disable-gpu, --disable-software-rasterizer, > --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, > --device-scale-factor=4, --force-device-scale-factor=4, > --autoplay-policy=no-user-gesture-required, > --enable-usermedia-screen-capturing] > [EDT] 0:0:2,771 - Exception: java.lang.RuntimeException - Failed to create > CEF browser > java.lang.RuntimeException: Failed to create CEF browser > at > com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) > at >
[codenameone-discussions] Failed to create CEF browser - Error in simulator
If you are experiencing an issue please mention the full platform your issue applies to: 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 CEF has installed. Trying for the first time to run my app on the simulator I get this error in a dialog: "Exception: java.lang.RuntimeException - Failed to create CEF browser". And in the log: Exception: java.lang.RuntimeException - Failed to create CEF browser java.lang.RuntimeException: Failed to create CEF browser at com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) at com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) at com.codename1.ui.Display.processSerialCalls(Display.java:1331) at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) at com.codename1.ui.Display.mainEDTLoop(Display.java:1162) at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120) at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176) Caused by: java.lang.reflect.InvocationTargetException at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367) at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342) at com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99) ... 7 more Caused by: java.lang.UnsatisfiedLinkError: /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile aprire il file oggetto condiviso: File o directory non esistente at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method) at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442) at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498) at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830) at java.base/java.lang.System.loadLibrary(System.java:1873) at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24) at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36) at org.cef.CefApp.startup(CefApp.java:536) at com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:178) at com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:170) at com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:167) at com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:112) at com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:102) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) CEF Args: [--disable-gpu, --disable-software-rasterizer, --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream, --device-scale-factor=4, --force-device-scale-factor=4, --autoplay-policy=no-user-gesture-required, --enable-usermedia-screen-capturing] [EDT] 0:0:2,771 - Exception: java.lang.RuntimeException - Failed to create CEF browser java.lang.RuntimeException: Failed to create CEF browser at com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106) at com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81) at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531) at com.codename1.ui.Display.processSerialCalls(Display.java:1331) at com.codename1.ui.Display.edtLoopImpl(Display.java:1274) at com.codename1.ui.Display.invokeAndBlock(Display.java:1446) at com.codename1.ui.Display.invokeAndBlock(Display.java:1485) at
[codenameone-discussions] Re: html package issue (from Stack Overflow)
I cannot find the right settings in IntelliJ Idea IDE to add the folder path. In the output I see this line /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xms128m -Xmx981m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes=\"\" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -Dsun.awt.disablegrab=true -javaagent:/home/pc/sviluppo/idea-IC-201.7223.91/lib/idea_rt.jar=40775:/home/pc/sviluppo/idea-IC-201.7223.91/bin -Dfile.encoding=UTF-8 -classpath /home/pc/IdeaProjects/sample/out/production/sample:/home/pc/IdeaProjects/sample/src:/home/pc/IdeaProjects/sample/lib/CodenameOne.jar:/home/pc/IdeaProjects/sample/JavaSE.jar:native/internal_tmp:lib/impl/cls com.codename1.impl.javase.Simulator com.codename1.samples.sample I think I should add the path to that classpath option but I cannot, no useful instructions on the web. I created a new command manually like /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xms128m -Xmx981m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes=\"\" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -Dsun.awt.disablegrab=true -javaagent:/home/pc/sviluppo/idea-IC-201.7223.91/lib/idea_rt.jar=40775:/home/pc/sviluppo/idea-IC-201.7223.91/bin -Dfile.encoding=UTF-8 -classpath /home/pc/IdeaProjects/sample/out/production/sample:/home/pc/IdeaProjects/sample/src:/home/pc/IdeaProjects/sample/src/html:/home/pc/IdeaProjects/sample/lib/CodenameOne.jar:/home/pc/IdeaProjects/sample/JavaSE.jar:native/internal_tmp:lib/impl/cls com.codename1.impl.javase.Simulator com.codename1.samples.sample (as you can see I added the path manually) But I get the same "File not found error" again. Reasonably, how long could the above mentioned issue take to be fixed? Il giorno venerdì 24 luglio 2020 08:46:40 UTC+2, Angelo Maci ha scritto: > > If you are experiencing an issue please mention the full platform your > issue applies to: > IDE: NetBeans/Eclipse/IDEA > IntelliJ IDEA 2020.1.3 (Community Edition) > Build #IC-201.8538.31, built on July 7, 2020 > Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin > Current Desktop: ubuntu:GNOME > > In regard to this SO question and the comments > > https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 > > I continue here, as the chat there is off-topic. The zipped project is > > https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing > > Thanks in advance > > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e7504bb8-1772-40b7-8cee-f9ed5d584bb2o%40googlegroups.com.
[codenameone-discussions] Re: html package issue (from Stack Overflow)
I found this directory /home/pc/IdeaProjects/sample/out/production/sample/html that has the HTML page inside as expected. You say it is not read from the simulator, if I am not wrong. So what is the folder that the simulator wants to read? I cannot change or add it whitout knowing it. thanks Il giorno mercoledì 29 luglio 2020 04:30:42 UTC+2, Shai Almog ha scritto: > > It would be in the same place under src as a package. The problem is it > isn't in the classpath of InterlliJ IDEA.So the workaround is to change the > classpath which menas editing some of the IDE configurations to add that > manually. > > On Tuesday, July 28, 2020 at 12:47:49 PM UTC+3 insig...@libero.it wrote: > >> Excuse me, how could I create the special html folder that the simulator >> wants? Where should it be on the filesystem? >> >> >> Il giorno martedì 28 luglio 2020 04:40:10 UTC+2, Shai Almog ha scritto: >>> >>> If I recall correctly the simulator needs to have the html directory in >>> the classpath as a special case. Notice that this should still work for >>> device builds regardless. >>> You can also open and run the project under NetBeans and that should >>> work too although you might need to comment out a few things such as the >>> Kotlin support in the build XML. >>> >>> On Monday, July 27, 2020 at 9:38:34 AM UTC+3 insig...@libero.it wrote: >>> Issue filed: https://github.com/codenameone/CodenameOne/issues/3187 I would like to know if there is a workaround for testing the app in the meantime. Thanks Il giorno domenica 26 luglio 2020 04:07:11 UTC+2, Shai Almog ha scritto: > > OK, I think that might be the crux of it. There might be an IntelliJ > specific bug for this specific feature. Please file an issue here: > https://github.com/codenameone/CodenameOne/issues/ > and highlight that this is happening with an Intellij project. We'll > look into it. > > On Saturday, July 25, 2020 at 12:22:48 PM UTC+3 insig...@libero.it > wrote: > >> As you also can see in my original post: >> >> IntelliJ IDEA 2020.1.3 (Community Edition) >> Build #IC-201.8538.31, built on July 7, 2020 >> Runtime version: 11.0.7+10-b765.64 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, >> org.jetbrains.kotlin >> Current Desktop: ubuntu:GNOME >> >> >> Il giorno sabato 25 luglio 2020 07:38:13 UTC+2, Shai Almog ha scritto: >>> >>> Are you using IntelliJ or NetBeans? >>> >>> On Friday, July 24, 2020 at 9:46:40 AM UTC+3 insig...@libero.it >>> wrote: >>> If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME In regard to this SO question and the comments https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 I continue here, as the chat there is off-topic. The zipped project is https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing Thanks in advance -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/bd4ca67e-ab2a-42c5-b4f7-89a01294b07do%40googlegroups.com.
[codenameone-discussions] Re: html package issue (from Stack Overflow)
Excuse me, how could I create the special html folder that the simulator wants? Where should it be on the filesystem? Il giorno martedì 28 luglio 2020 04:40:10 UTC+2, Shai Almog ha scritto: > > If I recall correctly the simulator needs to have the html directory in > the classpath as a special case. Notice that this should still work for > device builds regardless. > You can also open and run the project under NetBeans and that should work > too although you might need to comment out a few things such as the Kotlin > support in the build XML. > > On Monday, July 27, 2020 at 9:38:34 AM UTC+3 insig...@libero.it wrote: > >> Issue filed: >> https://github.com/codenameone/CodenameOne/issues/3187 >> I would like to know if there is a workaround for testing the app in the >> meantime. Thanks >> >> >> >> Il giorno domenica 26 luglio 2020 04:07:11 UTC+2, Shai Almog ha scritto: >>> >>> OK, I think that might be the crux of it. There might be an IntelliJ >>> specific bug for this specific feature. Please file an issue here: >>> https://github.com/codenameone/CodenameOne/issues/ >>> and highlight that this is happening with an Intellij project. We'll >>> look into it. >>> >>> On Saturday, July 25, 2020 at 12:22:48 PM UTC+3 insig...@libero.it >>> wrote: >>> As you also can see in my original post: IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME Il giorno sabato 25 luglio 2020 07:38:13 UTC+2, Shai Almog ha scritto: > > Are you using IntelliJ or NetBeans? > > On Friday, July 24, 2020 at 9:46:40 AM UTC+3 insig...@libero.it wrote: > >> If you are experiencing an issue please mention the full platform >> your issue applies to: >> IDE: NetBeans/Eclipse/IDEA >> IntelliJ IDEA 2020.1.3 (Community Edition) >> Build #IC-201.8538.31, built on July 7, 2020 >> Runtime version: 11.0.7+10-b765.64 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, >> org.jetbrains.kotlin >> Current Desktop: ubuntu:GNOME >> >> In regard to this SO question and the comments >> >> https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 >> >> I continue here, as the chat there is off-topic. The zipped project >> is >> >> https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing >> >> Thanks in advance >> >> -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/f265e3fc-8aa8-4bc1-9ab9-22b5765b523fo%40googlegroups.com.
[codenameone-discussions] Re: html package issue (from Stack Overflow)
Issue filed: https://github.com/codenameone/CodenameOne/issues/3187 I would like to know if there is a workaround for testing the app in the meantime. Thanks Il giorno domenica 26 luglio 2020 04:07:11 UTC+2, Shai Almog ha scritto: > > OK, I think that might be the crux of it. There might be an IntelliJ > specific bug for this specific feature. Please file an issue here: > https://github.com/codenameone/CodenameOne/issues/ > and highlight that this is happening with an Intellij project. We'll look > into it. > > On Saturday, July 25, 2020 at 12:22:48 PM UTC+3 insig...@libero.it wrote: > >> As you also can see in my original post: >> >> IntelliJ IDEA 2020.1.3 (Community Edition) >> Build #IC-201.8538.31, built on July 7, 2020 >> Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin >> Current Desktop: ubuntu:GNOME >> >> >> Il giorno sabato 25 luglio 2020 07:38:13 UTC+2, Shai Almog ha scritto: >>> >>> Are you using IntelliJ or NetBeans? >>> >>> On Friday, July 24, 2020 at 9:46:40 AM UTC+3 insig...@libero.it wrote: >>> If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME In regard to this SO question and the comments https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 I continue here, as the chat there is off-topic. The zipped project is https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing Thanks in advance -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/915717ae-22aa-4aff-b2b6-c31be8daac5co%40googlegroups.com.
[codenameone-discussions] Re: html package issue (from Stack Overflow)
As you also can see in my original post: IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME Il giorno sabato 25 luglio 2020 07:38:13 UTC+2, Shai Almog ha scritto: > > Are you using IntelliJ or NetBeans? > > On Friday, July 24, 2020 at 9:46:40 AM UTC+3 insig...@libero.it wrote: > >> If you are experiencing an issue please mention the full platform your >> issue applies to: >> IDE: NetBeans/Eclipse/IDEA >> IntelliJ IDEA 2020.1.3 (Community Edition) >> Build #IC-201.8538.31, built on July 7, 2020 >> Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin >> Current Desktop: ubuntu:GNOME >> >> In regard to this SO question and the comments >> >> https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 >> >> I continue here, as the chat there is off-topic. The zipped project is >> >> https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing >> >> Thanks in advance >> >> -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/91b6121d-5e59-4406-8168-61851654e676o%40googlegroups.com.
[codenameone-discussions] html package issue (from Stack Overflow)
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 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, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME In regard to this SO question and the comments https://stackoverflow.com/questions/62870956/codename-one-setting-a-font-in-javascript-and-html-from-local-file/62887425?noredirect=1#comment111488512_62887425 I continue here, as the chat there is off-topic. The zipped project is https://drive.google.com/file/d/11w3hofMy6r_mDHzKj9na-iKkoArLPtC1/view?usp=sharing Thanks in advance -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/0c0b5ca3-e9ef-41ab-94cd-3e36fec56434o%40googlegroups.com.
[codenameone-discussions] Re: iOS - Apple App store - Switching from CodenameOne app to native app, seamlessly with app update.
OK, I think I was in the answering sub-thread, I do not use GMail so often. Regards Il giorno mercoledì 22 luglio 2020 04:54:08 UTC+2, Shai Almog ha scritto: > > I see all posts in the thread including the one from Steve who gave the > right answer. > Yes, Google Groups deletes messages occasionally but I don't see any such > messages in this thread. > > On Tuesday, July 21, 2020 at 3:40:50 PM UTC+3 insig...@libero.it wrote: > >> Excuse me, where is the original answer? Is that information not correct? >> I see that some posts disappear, what happens here? >> >> >> Il giorno giovedì 16 luglio 2020 18:17:56 UTC+2, Dave Dyer ha scritto: >>> >>> >>> On the other hand, it's completely insane to develop and maintain two >>> independent versions of >>> an app, one based on java/eclipse and the other based on swift/xcode. >>> >>> -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/80ce1094-c6cb-48dc-b14f-32d1b9242546o%40googlegroups.com.
[codenameone-discussions] Re: iOS - Apple App store - Switching from CodenameOne app to native app, seamlessly with app update.
Excuse me, where is the original answer? Is that information not correct? I see that some posts disappear, what happens here? Il giorno giovedì 16 luglio 2020 18:17:56 UTC+2, Dave Dyer ha scritto: > > > On the other hand, it's completely insane to develop and maintain two > independent versions of > an app, one based on java/eclipse and the other based on swift/xcode. > > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/331e08d6-f009-46ce-b521-bec24ff0efbdo%40googlegroups.com.
[codenameone-discussions] iOS - Apple App store - Switching from CodenameOne app to native app, seamlessly with app update.
Hello, I would like to discuss this scenario: let's say a developer wants to leverage its Android Java code to create a iOS port with Codename One for a shorter time-to-market. Swift is not the problem but adapting to a new development philosophy with Xcode takes some time and some wits. But it is a matter of time. The native version is already in an early development stage. I would like to know if creating a Codename One version of the app and publishing it on the Apple App store prevents from releasing a native app in a future time with the same "package name" or whatever it is like on Apple store, with perfect updating and then managing all data in private app folders (the app internal files). Is it possible? Thank you in advance. -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/107f1fdc-3d13-4ade-8666-f6c85b49deb8o%40googlegroups.com.
[codenameone-discussions] BrowserComponent editing not working / JCEF support release
If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA IntelliJ IDEA 2020.1.3 (Community Edition) Build #IC-201.8538.31, built on July 7, 2020 Runtime version: 11.0.7+10-b765.64 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.4.0-40-generic GC: ParNew, ConcurrentMarkSweep Memory: 949M Cores: 4 Non-Bundled Plugins: com.codename1.plugin.intellij, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME Desktop OS Linux Simulator I took a look at github commit history but because of I am not a github expert I did not find explicit JCEF releases. I assume that's one of them, so I tested the BrowserComponent about this issue: https://stackoverflow.com/questions/62672861/text-editing-by-user-not-possible-in-browsercomponent-codename-one-simulator Still having the same issue. I think no update happened on my system and it says "no plugin updates available", as an issue on updating was aknowledged but maybe it is still bugging the system. Or the editing in the BrowserComponent still does not work. Or the simulator has to be updated itself, I do not know. What's wrong? -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/804f8d5e-856e-4b89-9d80-a3509bf674a1o%40googlegroups.com.
[codenameone-discussions] Re: Debugging not possible - error
No problem, just is there a place where you inform us about some rollouts or releases, I am new here, like the one I am waiting for, the new BrowserComponent based on JCEF support, if I am not wrong? Regards Il giorno giovedì 25 giugno 2020 10:48:26 UTC+2, Angelo Maci ha scritto: > > IDE: IDEA > Desktop OS Ubuntu > Simulator > Device > > Hello,I am trying to debug with breakpoints but I get: > > Restarting JVM with JavaFX in the classpath. > NOTE: If you are trying to debug the project, you'll need to cancel this > run and try running debug on the project again. JavaFX should now be in > your classpath. > OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated > in version 9.0 and will likely be removed in a future release. > ERROR: transport error 202: connect failed: Connessione rifiutata > ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) > JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized > [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:735] > Disconnected from the target VM, address: '127.0.0.1:42589', transport: > 'socket' > > Process finished with exit code 2Which JVM are you using for debugging. > > It seems JavaFX isn't working for that VMI do not know how to check and > which settings to change, please give me suggestion > OpenJDK > At project creation I saw the right JDK. > I cannot find a place in the settings where the debug JDK is pointed. > > Run configuration just works. > Thanks in advance > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/2d1d2fea-36bf-46b7-a5c0-123735d363cbo%40googlegroups.com.
[codenameone-discussions] Re: Debugging not possible - error
I opened Idea after some time and it updated itself and the Codename plugin. Now debugging works. Regards Il giorno martedì 30 giugno 2020 04:03:07 UTC+2, Shai Almog ha scritto: > > I've looked a bit further and it's possible our plugin updates aren't > arriving for newer versions of intellij I'm investigating this. > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/73c141fd-4c0f-4e03-9456-fa2135f9396ao%40googlegroups.com.
[codenameone-discussions] Creating the iOS native project from Codename app
Hello, I am porting an Android app to iOS with Codename One, in fact I am just experimenting, I do not know if it suits my needs. One idea is to create the complete app with Codename One and then download the native iOS sources. I mean, if Xcode sources are intellegible, I could continue from there, with a limited access to paid Codename Services just to have the application. I would like to know if this makes sense. And what intellegibility have the iOS sources generated by Codename, I could download with paid access. How much would it be different from a standard Xcode app? What language is generated? And so on. Thanks in advance -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/922a42f5-a58b-4a2e-b03e-1bffc18328f3o%40googlegroups.com.
[codenameone-discussions] Re: Debugging not possible - error
Sorry, I do not know where to find that information. Where should it be? Il giorno lunedì 29 giugno 2020 05:10:49 UTC+2, Shai Almog ha scritto: > > What's the version of the plugin listed in the plugins section? > It should be 6.5 > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/dbba5b6b-4aad-4502-90d8-7dce5baac491o%40googlegroups.com.
[codenameone-discussions] Re: Almost every run creates a new simulator instance
As far I understand, the simulator is not just as the Android emulator, so you do not deploy something into it, because it is the application itself, even in the apparent form of a device running another application. Said that, it is a minor issue for sure, I have not any problem closing the instances manually. In the long run you have to take into account that developers will end up having a lot of instances open on the system for sure, because of the normal tendency to forget and being busy and distracted. Very soon closing the instances is felt as a chore, not even mentioning when the instances have some conflicts, as said in my original post. Furthermore I use very often (even several times in a minute) the "hot corner" function that shows me all windows, and it is easily crammed by the simulators. I think that the "Stop" function is triggerable from the plugin, calling it in the run/debug initial operations. It would depend on the "only one instance" option in the settings. It closes the opened simulator, I tried. "Stop All" closes all instances. With appropriate combination of settings a developer can decide to mantain some instances open, if needed, while the most recent is closed and re-run as the "active" one. Regards Il giorno sabato 27 giugno 2020 07:14:47 UTC+2, Shai Almog ha scritto: > > Re-running within the same simulator skin won't provide any performance > benefit as the simulator loads instantly. It also can't be done as those > are separate processes (our simulator is self contained). It isn't hard to > press the X to close the button on an existing simulator instance or the > stop button in intellij. > > Adding something like this would mean every simulator instance will have a > lock file to detect a running simulator and would need to monitor it for a > kill instruction by a new simulator instance... That's a lot of overhead > for something that doesn't seem to provide too much benefit. Am I missing > something? > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8f2caebb-f667-44f8-ad60-1e4ef5d795d6o%40googlegroups.com.
[codenameone-discussions] Re: Debugging not possible - error
The IDE says "no plugin updates available". Anyway, even if an automatic update happened, debug is not possible yet, same error. IntelliJ IDEA 2020.1.2 (Community Edition) Build #IC-201.7846.76, built on June 1, 2020 Runtime version: 11.0.7+10-b765.53 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.4.0-39-generic GC: ParNew, ConcurrentMarkSweep Memory: 949M Cores: 4 Non-Bundled Plugins: com.codename1.plugin.intellij, org.jetbrains.kotlin Current Desktop: ubuntu:GNOME Il giorno sabato 27 giugno 2020 07:15:17 UTC+2, Shai Almog ha scritto: > > Did the new update solve that problem? > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/161ed2b5-7a72-4237-8c25-9fcc2b85451fo%40googlegroups.com.
[codenameone-discussions] Re: Debugging not possible - error
It's OpenJDK 11, thanks. Il giorno venerdì 26 giugno 2020 04:48:16 UTC+2, Shai Almog ha scritto: > > We're pushing out a new version of the IntelliJ plugin today. It should > resolve that issue (hopefully). > Which JDK are you using? > Notice we only support JDK 11 or Oracle JDK 8/ZuluFX 8. > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/3512cc74-c4db-43ac-bdd1-54681fa49b5ao%40googlegroups.com.
[codenameone-discussions] Re: Almost every run creates a new simulator instance
Hello, I hope that in the future that can be made optional because those needs I am not encountering them as for now and just it keeps filling my system with instances. Thanks, regards Il giorno venerdì 26 giugno 2020 04:42:32 UTC+2, Shai Almog ha scritto: > > This is intentional. Simulator loads instantly so you just close/open it > unlike Android which takes forever. > You can also debug things side by side e.g. make a change run the > simulator again and hold the simulators one next to another to compare > behavior. You can also debug networking apps more conveniently this way. > > This exception is related to JavaFX which is a bag of troubles and pain. > We've started on the long process to dump that disaster: > https://www.codenameone.com/blog/moving-away-from-fx.html > -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a17ee6d5-171d-43ca-9f51-717f9a49485do%40googlegroups.com.
[codenameone-discussions] Debugging not possible - error
IDE: IDEA Desktop OS Ubuntu Simulator Device Hello,I am trying to debug with breakpoints but I get: Restarting JVM with JavaFX in the classpath. NOTE: If you are trying to debug the project, you'll need to cancel this run and try running debug on the project again. JavaFX should now be in your classpath. OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. ERROR: transport error 202: connect failed: Connessione rifiutata ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:735] Disconnected from the target VM, address: '127.0.0.1:42589', transport: 'socket' Process finished with exit code 2Which JVM are you using for debugging. It seems JavaFX isn't working for that VMI do not know how to check and which settings to change, please give me suggestion OpenJDK At project creation I saw the right JDK. I cannot find a place in the settings where the debug JDK is pointed. Run configuration just works. Thanks in advance -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/2da990c1-8d0f-4798-b599-6cb2e4a24b82o%40googlegroups.com.
[codenameone-discussions] Almost every run creates a new simulator instance
If you are experiencing an issue please mention the full platform your issue applies to: IDE: IDEA Desktop OS Ubuntu 20.04 Simulator Device: iPadMini, etc Almost every run creates a new simulator instance. I have to close the previous one so to clear the windows on my system. Notice that usually it's not blocking but I experienced an error with BrowserComponent that seems to lock some folder onto my system. [JavaFX Application Thread] 0:0:2,889 - WebError: WebErrorEvent [source = javafx.scene.web.WebEngine@478a1ef9, eventType = USER_DATA_DIRECTORY_ALREADY_IN_USE, message = "User data directory [/home/pc/.cn1/.fxuserdata] is already in use", exception = javafx.scene.web.DirectoryLock$DirectoryAlreadyInUseException: /home/pc/.cn1/.fxuserdata] -- 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-discussions+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/ebcd95db-afd9-44f4-8f6f-55c1126b54b9o%40googlegroups.com.