Intellij JavaFX vs Java Project for .exe file

Georgios :

I have already a Java Project in Intellij.

I want to make a .exe Java file, but I did not find any solution yet for Java Projects. On the other hand, I have found many youtube videos in which they use a JavaFX Project to create an artifact which they will use to create a .exe file.

One of them is the following youtube video: IntelliJ export JavaFX application to exe on Windows

My end goal is, that a user just double clicks on the file and a GUI opens. After entering some information the rest of the code should run. The file should be able to run to different windows systems, so this should not only work when installing special packages.

Did I chose the wrong type of project? To that I just read, that JavaFX will be discontinued.

I am confused in so many levels...

geekTechnique :

You should first make an executable .jar file and then use an .exe wrapper on the jar. I've used

Launch4j in the past with great success. I haven't tried it on javafx yet, but there are many executable wrappers to choose from with a quick google search. If this is at all unclear, leave a comment, and I'll detail these steps more. Launch4j has an almost self explanatory interface, so I don't think you should have trouble as long as you're sure your .jar launches.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=101195&siteId=1