CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

Feature request: Linux executables using graalvm

Open dhombios opened this issue 3 years ago • 1 comments

As far as I know, codename one cannot directly generate native Linux executables and, therefore, apps need to be distributed as jar files in order to allow using them in that platform. I’ve seen in some answers in stackoverflow that there were technical reasons for this. However, using graalvm native-image compiler could allow generating executables for this platform. Additionally, it could be also used for optimizing windows and macOS executables.

Another possibility could be distributing them as an app image with a Javavm embedded

dhombios avatar Jul 18 '22 08:07 dhombios

GraalVM still has issues linking to Swing last I checked. We need that and native linking (if you need a browser) for everything to work. We probably won't do this but if you can solve these two problems you can just convert the executable jar target using GraalVM.

See: https://github.com/oracle/graal/issues/3084

shai-almog avatar Jul 20 '22 02:07 shai-almog