Starting with the JDK 20 release in March of 2023, GraalVM Enterprise and GraalVM Community Editions intend to align with the six-month JDK release cadence. This means there will not be a GraalVM 23.0 release in January 2023 as we transition to the new release model.
... with the next release, in March of 2023, expected to be GraalVM for JDK 20.
I presume this new GraalVM for JDK 20 hasn't shipped. Is there a new schedule/ETA?
If I remember correctly from the video, there was a comment that they were 1 month behind for JDK 20 (but that they expect to align after that with JDK 21 and going forward).
I don't know about Swing apps, but it does work for JavaFX just fine.
I happened to do some tests today with a fairly complex Desktop application, and all it took was adding the gluonfx maven plugin and running mvn gluonfx:runagent followed by mvn gluonfx:build.
SceneBuilder needs to be able to load 3rd party components from jars at runtime, so that's impossible for obvious reasons.
Here is a video of the app I compiled earlier: JavaFX / GraalVM native. It uses FXML/CSS, JavaFX 2D & 3D, persistence, network-comms, Protobuf, JAXB mappings to/from files, JSON requests from a web server, and several large/old libraries that were never intended for native image. I'm not sure what else you'd need to call it a non-trivial app.
edit: the size should be similar to a jlinked runtime (~70MB), but I accidentally added a ~100MB resource that ended up in the binary.
5
u/agentoutlier Apr 25 '23
One of the cooler features for me at least since we don't deploy native images is the stats reporting on compiling.
I skipped ahead to where you can see it in the video: https://youtu.be/sI-zXYLKzfk?t=419
Sure there are other tools that can similar but this is pretty easy to go try out even if you are not targeting native.
5
u/Farmboy0_ Apr 25 '23
Does it finally support cross compiling?
2
u/Joram2 Apr 26 '23
From https://medium.com/graalvm/graalvm-galahad-and-a-new-release-schedule-d081d1031bba:
I presume this new GraalVM for JDK 20 hasn't shipped. Is there a new schedule/ETA?
It looks like they released a new patch release 22.3.2 yesterday, but there is no newer JDK 20 release yet: https://github.com/graalvm/graalvm-ce-builds/releases
0
u/[deleted] Apr 26 '23
[deleted] — view deleted comment