How To Deploy an Executable JavaFX 15 Application JAR File Using IntelliJ 2020.3.2 on Windows 10 x64

preview_player
Показать описание
This tutorial shows you how to deploy an executable JavaFX 15.0.1 application jar file using IntelliJ 2020.3.2 on Windows 10 x64. It contains application code and resources. In this way, you can run your JavaFX application by simply double clicking the jar file.

Java installation directory.

C:\Program Files\Java\jdk-15.0.2

JavaFX installation directory.

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

Setting Environment Variables

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

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/JavaFX04/META-INF/. JavaFX04 refers to your project name.

JDK 15.0.2
JavaFX SceneBuilder 15.0.1
IntelliJ IDEA 2020.3.2
Windows 10 Pro x64 20H2

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

YOU ARE A HERO, I'VE LOOKED EVERYWHERE AND THIS WAS THE ONLY SOLUTION THAT WORKED.

sometimes
Автор

I have looked everywhere, and only this solution worked and is the most hassle-free. Thanks!

rabeebibrat
Автор

Thank you so much, i`ve watched ~100 pages about this question. but you`re the one who made the guide that really helped me. Thanks.

dm
Автор

I have watched about 100 videos all showing complicated workarounds that never ended up working and this one did!

chaldunalder
Автор

Dude, you deserve more people on your channel. This is life-saving content. I've looked everywhere on the internet, and you were the only one that had a solution. Also, maybe you know how to use the labels in JavaFX, for example. I have a label that is 1920 by 1080, and I have like 10 lines of lyrics. I want to be able to either scale up or down font size based on text amount. Do you know how to do that?

davidorlov
Автор

Thank you very much for this tutorial, helped greatly for my JavaFX project!

parpaza
Автор

Hello, I have an error when opening the build artifact, I get JNI error. Does anybody know what to do?

The
Автор

Which Java runtime you use? i used jre1.8 and it's not running my jar file.

bensmed
Автор

Very good tutorial, but I am still experiencing one problem. The JAR only launches my initial login screen, when I input the correct credentials it never launches the next screen like it is supposed to. It only ever stays on just the initial screen. How can I create a JAR that has my entire application and can switch between the multiple scenes? Thank you

DeepNightSounds
visit shbcf.ru