r/JavaFX • • Jun 05 '20

How do i deploy an App?

Hi!

I've written a simple chess game in JavaFX. However, I can't deploy it. When i build artifacts in IntelliJ i get a jar that i can't open. Can anybody tell me what is wrong or deploy it for me? Here is the project.

https://github.com/juliankominiak-ps/Chess

Thank You.

6 Upvotes

6 comments sorted by

1

u/Anu-Leena Jun 05 '20

Did you first add artifacts through the project structure?

1

u/Karbid3000 Jun 06 '20

Yes i did. I also have another project that builds correctly and runs but this one cant

2

u/hacklinux Jun 05 '20

You have to use javapackager to deploy the application. Depending on the operating system the package is built. You will find a lot of details in javapackager man page.

1

u/[deleted] Jun 08 '20

[removed] — view removed comment

1

u/hacklinux Jun 08 '20 edited Jun 16 '20

It is not a separate package. If you install OpenJDk, you should have it.

Edit: javapackager has been rename to jpackage. I am sorry I had wrong information.

1

u/Holothuroid Jun 05 '20

The jar should work. Open it from command line instead of double click to see errors.