blog/java-to-a-native-linux-app/ #5282
Replies: 2 comments 2 replies
-
|
Hi Shai, thank you for the detailed write-up. Small note: it looks like the Mermaid flowchart was included as raw code in the article instead of being rendered as the actual diagram. I also had a couple of related questions/observations. Are the desktop targets, Linux, Windows, and macOS, currently the only Codename One targets that do not use native interfaces? If native desktop integrations were ever added in the future, would they likely need to be implemented in C/C++, or would another approach make more sense? I’m asking because in the Linux desktop world it is quite common for applications to call CLI tools behind the scenes for certain integrations. I’m not sure whether something like that would be possible, or even desirable, in the context of CN1. One more practical note: I just created a new project with the Initializr, but I don’t see a Linux desktop target among the Maven goals shown in IntelliJ. Separately, there may also be something to adjust in the CSS generated by the Initializr. The generated app seems to render correctly only in dark mode. In light mode, some colors look wrong, for example the toolbar appears black. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, Shai. I downloaded a new Initializr project. Here are my observations:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
blog/java-to-a-native-linux-app/
The new native Linux port compiles your Java to a single self-contained ELF through ParparVM and GTK3, with no JVM on the target machine. It runs on an ancient universal glibc, supports musl for Alpine, and ships for both x64 and arm64.
https://www.codenameone.com/blog/java-to-a-native-linux-app/
Beta Was this translation helpful? Give feedback.
All reactions