Reputation:
I have made an application in JavaFx. Is it possible to quickly converted into maven and attach java so you could run the application on a system Windows without installed Java. Or is there some other way to solve this problem? I am seeking advice on this topic. This is my work in college, but not studying computer science and professor wants to see the end result.
Upvotes: 0
Views: 831
Reputation: 11235
I have not tried it for a while but have a look at JSmooth
It enables you to create an executable that contains the JRE. (By using a GUI)
From the site
It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.
and
Sometimes it's more convenient to bundle a JRE with your application. JSmooth can deal with that too...
You can download the latest (which has not been maintained for a while now) here.
Upvotes: 0
Reputation: 38132
Oracle released the javapackager tool as part of the JDK, which can embed a JRE.
Tutorial: https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html#BCGIBBCI
JavaFX Ant Tasks: https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_tasks.html#CHDBGIJG
AFAIK, the Maven JavaFX Plugin supports embedding JREs as well: https://github.com/javafx-maven-plugin/javafx-maven-plugin
Upvotes: 3