Anyone tried Native packaging for JavaFX?

I just noticed the that JDK 7u6 and newer apparantly contain a packaging tool to make JavaFX applications native, which means it will wrap JavaFX runtimes into a windows EXE, a MSI installer, a Max bundle / dmg, or a linux bundle / rpm. Pretty nifty that sounds.

Here’s the link:
https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx

I’m going to play around with this a bit (mostly for a tool I’m working on as a sideproject), but I’m wondering: has anyone here tried it out yet?

I also wonder whether it may be useful for LWJGL-based games…

I used it for a little application I delivered recently (JavaFX based one). The native packaging is pretty simple but it works and the client’s happy. At first I had trouble with the latest JDK 7 (the application installed but wouldn’t launch). I switched to the early JDK 8 builds and the problem went away. It’s still a work in progress afaict, but single-click deploy (I used the ant tasks) and single-click installation/execution are pretty cool to finally have in Java.

When will this be a reality with games / LWJGL? :open_mouth:

It’s supposed to support any kind of Java application, not only JavaFX based ones, I just haven’t tried it yet. You can bundle any file/jar/native library you want and it will work. Also, the installation allows for a private embedded JRE, which is brilliant for game deployments.

edit: The packager compresses everything nicely too.

Seriously considering using this now :slight_smile:

Cas :slight_smile:

Cool, good to hear. I’ll definitely check it out then. And indeed, it’s really good to see someone at Oracle has got a clue what a pleasant user experience regarding deployment is ;D

You have to package it on each supported OS, don’t you? I prefer Java Web Start even though it is still a bit buggy.