JAR to EXE file Bundled With JRE, The Easy Way! (Video #2)

preview_player
Показать описание
Second Installment of my series on how to package and deploy a JavaFX application to make it distributable.

In this tutorial, I walk your through the steps necessary to wrap your JavaFX app to a .EXE file with launch4j, but with your JRE bundled with it so there are no issues with compatibility when you distribute your application.

Рекомендации по теме
Комментарии
Автор

Hey man, you really saved me there. I've been attempting this for a while and kept failing when I prepared the JRE folder in the same path as the config and exe file. For all those who were wondering how to include libraries and modules (like JavaFX and so on), consider creating a "fat JAR file." This is a viable option that bundles your dependencies with it. However, this option is not available within Launch4j. You must ensure this through your IDE when proceeding with the JAR file. Best of luck, my programmer friends. =)

robinzukunft
Автор

When I first saw this video I was like "WTF even is this this guy doesnt even have an ok mic and the sound is coming from one spot" but then I watched the video and you just helped me fix my bug that has been bugging me (pun intended) for the last 2 days

Thank you!

I would appreciate it if you made another 3 video series for gradle as well, I couldn't get gradle to work so I just created an empty java project (without maven and gradle) and created my own "deploying system"

oguzhantopaloglu
Автор

Thanks for your help!! Wish you the best!

gustavojorge
Автор

Thank you so much I was so confused as to why it wouldn’t work

wherefox
Автор

Finaly! I found exactly what i need. Thank you.

kskwhdl
Автор

Great explanation. It works perfectly.

yqlwqyl
Автор

thanks a lot bro you helped me more than you think

mohamedslimani
Автор

Thank you!! I've been struggling with this for a while. Much appreciated!

sions
Автор

I've been struggling to find out why it won't bundle the jre with the exe. Now I know! Thank you!

scotty
Автор

It’s very useful. Thanks a lot. But JDK is not JRE. As I understood Javafx cannot work with an ordinary jre, can it?

rostislavtelitsin
Автор

thank you it worked, but the size of the app has changed it appears smaller how can i fix that ??

eel
Автор

Hi. It's very good tutorial for beginers. I have one problem. My app working with simple txt file to save data from app. When i run my app from exe file, change data and closing it, after restart i don't have any data. The app simply dont save and load data from file. Do you know possible solution? Thanks for answer. Cheers.

wojtekwilusz
Автор

what about if it is a terminal output application? how is this work in this cases?

KlanBr
Автор

Hey Hai, The above process is working fine in windows and the same process i have executed in linux system it worked and then i have transferred that folder to my windows system and runned trhe .exe file then it was shown an error message i.e. this application required java runtime envitonment. could you please help me with this

vamsiboina
Автор

but what if the library requires natives like LWJGL? how would you do that?

onebigsnowball
Автор

Can't the graalvm be used to generate the executable?

CaboLabsHealthInformatics
Автор

Если ошибка об отсутствии JavaFX, то заполнить еще JVM Options: ---module-path "JRE\javafx-sdk-21.0.1\lib" --add-modules javafx.controls, javafx.fxml (где путь заменить на свой путь, где лежит именно javafx(\lib). я его скопировал прямо в JRE папочку, рядом с екзешником которая и на неё ссылаюсь.

YuriLazutchenko
Автор

The version I downloaded looks different ... theres no way to bundle jre

const
Автор

man all the audio in this video is hard panned to the left and it is killing me

WretchedByNature
Автор

amazing work but I think there should be some easier way of doing it. after all its 21st century xD

sham