Codename One Runs Unmodified Swing and JavaFX Code on iOS, Android and the Web

Codename One, an open-source framework, can now compile much of existing Swing and JavaFX desktop code into native apps for iPhone, Android, the web and desktop without a JVM. The JDK demos SwingSet2 and Notepad are among the test cases that build and run, with FXML and JavaFX CSS handled at build time instead of on the device. Native builds are substantially smaller than JVM-based packages, at 4.2x to 6.0x less download size on Linux, and start faster in every tested app. Memory use is mixed, with the native build sometimes using less at idle and sometimes more after interaction. The approach has clear limits: third-party jars compiled against Swing or JavaFX are rejected, and reflection, class loaders, Java serialization and ProcessBuilder are unavailable.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in