codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.72k stars 409 forks source link

Cannot install plugin in Netbeans 11.1 #2916

Open shannah opened 5 years ago

shannah commented 5 years ago

Just tried installing Netbeans 11.1 on my laptop. Got this error when I tried to install the Codename One Plugin image

shannah commented 5 years ago

This could be hard to nail down. Yesterday, Installed latest Netbeans on another MBP, and CN1 plugin installed fine.

heitorprojects commented 5 years ago

This might provide some clues...

Using NetBeans 11.1 with Java 11 on Linux (haven't tried on other platforms).

If I install the 'nb-javac' plugin, as recommended by the IDE notifications, the CodenameOne plugin module fails to load and therefore CodenameOne features are unavailable.

(Works fine as long as I don't install 'nb-javac')

codenameone commented 5 years ago

https://stackoverflow.com/questions/58638393/netbeans-plugin-fails-if-nb-javac-installed

shannah commented 5 years ago

I wish it was this clear cut. I have 3 Macbook Pros. All three had nb-javac installed. 2 worked. One did not.

heitorprojects commented 5 years ago

This might provide some clues...

Using NetBeans 11.1 with Java 11 on Linux (haven't tried on other platforms).

If I install the 'nb-javac' plugin, as recommended by the IDE notifications, the CodenameOne plugin module fails to load and therefore CodenameOne features are unavailable.

(Works fine as long as I don't install 'nb-javac')

heitorprojects commented 5 years ago

Here's another potential clue...

As my editing experience with other projects was very sluggish and generating OutOfMemory exceptions, I explicitly increased the memory allocation for NetBeans, adding these JVM switches in the {netbeans_home}/etc/netbeans.conf file: -J-Xms2G -J-Xmx3G

I then installed the nb-javac plugin, as it claims to improve editing performance and... Voila! - all is now working correctly.

So perhaps, the default memory allocation by the NetBeans JVM startup process is simply not enough to accommodate the memory requirements of the CodenameOne plugin and all its tooling...(?)

fuadnassar90 commented 4 years ago

there's a related issue for this also in update section when i click check for update i got these msg

"Unable to connect to the CodenameOnePlugin Update Center because of Received fatal alert: handshake_failure"

https://www.imageupload.net/image/F0Kup

jjvanhorssen commented 4 years ago

I get the same error message as fuadnassar90, in NetBeans 8.0.2. What is the status of this?

jjvanhorssen commented 4 years ago

Updating to the latest JDK 8 update solved the problem for me.