How To Deploy an Executable JavaFX 16 Application JAR File Using IntelliJ 2020.3.3 on Windows 10 x64

preview_player
Показать описание
This tutorial shows you how to deploy an executable JavaFX 16 application jar file using IntelliJ 2020.3.3 on Windows 10 x64. It contains JavaFX application with JavaFX library and DLL (.dll) files that can be accessed by a Windows program. In this way, you can run your JavaFX application by simply double clicking the jar file.

Java installation directory.

C:\Program Files\Java\jdk-16

JavaFX installation directory.

C:\Program Files\Java\javafx-sdk-16

Setting Environment Variables

JAVA_HOME="C:\Program Files\Java\jdk-16"

JAVA_HOME tells your OS where there Java installation directory lives.

PATH="%JAVA_HOME%\bin"

PATH specifies where the Java executable directory resides.

If it complaints about an existing MANIFEST.MF file, you can remove it from out/production/HowTo59/META-INF/. HowTo59 refers to your project name.

VM options
--module-path "C:\Program Files\Java\javafx-sdk-16\lib"

JDK 16
JavaFX SceneBuilder 15.0.1
IntelliJ IDEA 2020.3.3
Windows 10 Pro x64

#JavaFX​​16 #ExecutableJar​​ #DeployJar​ #CreateJar
Рекомендации по теме
Комментарии
Автор

You are literally a life savior, I had only 1 hour left to send the assignment and no other tutorial would work

George-kblw
Автор

tried over 10 tutorials this one worked 10/10

DerMatheman
Автор

Thank you very much good sir! I've been trying various tutorials then learned that later versions of JavaFX (I think 11+ which I'm using) cannot be simply built with jar files. This video walked me through the updated way from configuring the JAVA PATH (previous video) to deploying.

Thank you very much!

noicenoise
Автор

Thank you so much, its working. No one could help me.

vogivcj
Автор

Thank you very much i tried this so much but the file import is the step i forgot so i must say thank you.

xdfun-
Автор

Estuve dos dias compa me salvaste te amo

joaquinguerrini_dev
Автор

what if we also need some other libraries besides javafx? What are the extra steps that we need to follow for the jar file to work?

shaoqianzhou
Автор

i have this error:
Error occurred during initialization of boot layer
Module KeepRaffle not found

i dont know how to fix that

SypEX-vzui
Автор

Hello Ken, can you do a video showing how to do this with Swing and Java 16 ?

klarissaclairiton
Автор

I'm getting error no main manifest attribute in my jar

shaliniyadav
Автор

what if the project use mysql db does get deployed within within the jar too? Which works on different machine?

gilbertcabigasalmazan
Автор

Hello. I have created a custom control but IntelliJ IDEA shows this message: fx:deploy is not available in this JDK. I saw your video but it doesn't work. Can you make a tutorial to show how to make a custom control?

I don't know why it doesn't work. The control works but I need to build it to load the jar in Scene Builder. I'm using JDK 16 and Scene Builder 16.

libanbande
Автор

That final jar can run on any PC with a different jre?

manurodriguez
Автор

Hello Ken, I followed your steps to setting this project up and I got to the part where we edit the configurations and add vm after I did that and applied changes, I ran the application and it gave me this message 

Error occurred during initialization of boot layer
Module KeepRaffle not found

Process finished with exit code 1


any idea how to fix this error?
thanks

iyadshaheen
Автор

does it work in Netbeans IDE 12.0 or higher?

bisayacoding
Автор

I finally make runnable jar with this video but I have a question. Why do I have to make App class?

Sun_Heok
Автор

My .jar File dont open. IntelliJ create it but it doesnt work.

ung