When comparing Codename One vs GitHub Electron, the Slant community recommends GitHub Electron for most people. In the question“What are the best tools for making a cross-platform application?” GitHub Electron is ranked 8th while Codename One is ranked 17th. The most important reason people chose GitHub Electron is:
No need to learn native UI APIs for multiple platforms.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro High performance
Pro Open source
Pro Highly customizable
By utilizing lightweight component architecture and the built in graphical designer and theming options you are able to customize a good looking app on any platform.
Pro Java 8 support
Pro Works with all IDEs
Works with NetBeans, Eclipse, IntelliJ, etc.
Pro Multi-platform development environments (via build server)
You can even use Linux desktops to build native iOS apps, no need for a Mac.
Pro Vibrant & helpful community
Pro Attractive pricing
It is possible to build production grade apps even with the free version. Pricing is decent when compared to competitors like Xamarin.
Pro Relatively low barrier to entry
No need to learn native UI APIs for multiple platforms.
Pro Has a built in packager which allows you to package web apps
the electron packager tool allows you to package your web app for any target platform that you desire, as long as you provide the correct information.
Cons
Con Looks and feels like an alien
Con Microsoft
Developed by Microsoft-owned Github
Con Extra effort may be required to make things look native on each platform
Con Mobile platforms not supported
According to documentation only Windows, Linux and Mac are supported, no mobile platforms.
Con Heavyweight
Requires a bit of system memory, and makes applications bulky due to the fact that all your web apps made in electron work in a NodeJS Shell that is basically a web browser displaying your app.