I plan to spend more time on Java on Mobile (OpenJDK Mobile) in the near future. There is 0 support from big tech because they fall in 2 categories:
1. they have no revenue on mobile
2. they have competing OS tech that drives devs/users to their revenue-driven cloud services.
But since I'm not big tech, I can just do it.
@johanvos How is it with ios Support? I read that it works using GraalVM?
@siedlerchr
Yes, that works.
Here are the docs for using Gluon Substrate, which is using GraalVM native image under the hood. https://docs.gluonhq.com/#platforms_ios
@johanvos Great news!
I am using the whole Gluon+GraalVM toolchain for a private hobby project and finally got it all running. After initial learning that works pretty solid.
My remaining "How Do I do that?" problems are mostly automated app store uploading and some references to old AWT code in third party libraries that the old GraalVM Gluon is using does not support.
@taranion Yeah, appstore uploading is a pain. We try to document it as good as possible, but even then they keep making it hard (for all developers, not just for JavaFX apps) with all those changs.
As for old AWT code etc, it should be more transparent to the developer, but requires more/better detection/feature in GraalVM -- maybe we need a mobile/embedded specific fork.
@johanvos I have a mobile game that uses java and c++ and use roboVM in order to make it work on iOS. I understand that GraalVM Native is pretty much a replacement for RoboVM but I am not sure if it's considered mature enough for a realtime 3D game. For example I understand that reflection is missing. Are there any libgdx games running on GraalVM that you know of? Thanks!
@Sebastian_Bugiu Since GraalVM is based on the latest and complete JDK, it is extremely powerful. There are some operational difficulties, due to the complex nature.
We handle some of these with Gluon Substrate, see https://docs.gluonhq.com/#_gluonfx_plugin_for_maven .
Reflection is available, but requires configuration.
GraalVM (via Gluon Substrate) is my #1 choice for compiling Java to mobile and embedded. But more resources are needed to make it really developer-friendly.
@Sebastian_Bugiu Also, there are a large number of JavaFX games that you can run on mobile, see https://github.com/AlmasB/FXGLGames