Java executable (.jar) ☕

preview_player
Показать описание
Java executable jar

#java #executable #jar

0:57 Eclipse .jar
2:25 IntelliJ .jar
3:47 create an icon (.ico)
5:25 executable wrapper

Create an executable jar with Eclipse IDE
-----------------------------------------
1. Right click on Java project (pick a project with a GUI)
2. Export
3. Java , Runnable Jar file
4. At Launch configuration select your project
5. At Export destination, select where you want this jar file exported to
6. Finish

Create an executable jar with IntelliJ
-----------------------------------------
1. File , Project Structure , Artifacts , (+) , JAR , jar from module with dependencies
2. Main Class: select the class containing your main method
3. OK
3. Change output directory to where you want this JAR saved to
6. Apply , OK
7. Build (top of window in IntelliJ) , Build Artifacts , Build

If you want an icon, convert an image to a .ico file
----------------------------------------------------
2. Choose your image (file type my vary)
3. Upload
4. Convert to ICO
5. Download your icon

Use Launch4j to create an .exe with custom icon
----------------------------------------------
2. Output file: browse for the output destination and name your file ending with .exe
3. Jar: browse for where you saved your jar or executable jar file
4. (Optional) Icon: browse for your custom icon (must be .ico)
5. navigate to JRE tab
6. Bundled JRE path: Browse for location of your jdk (Example C:\Program Files\Java\jdk-14.0.1)
7. At the top of window, click the Build Wrapper (gear icon)
8. name and save the Lauch4j config file where you want
Рекомендации по теме
Комментарии
Автор

Create an executable jar with Eclipse IDE

1. Right click on Java project (pick a project with a GUI)
2. Export
3. Java, Runnable Jar file
4. At Launch configuration select your project
5. At Export destination, select where you want this jar file exported to
6. Finish

Create an executable jar with IntelliJ

1. File, Project Structure, Artifacts, (+), JAR, jar from module with dependencies
2. Main Class: select the class containing your main method
3. OK
3. Change output directory to where you want this JAR saved to
6. Apply, OK
7. Build (top of window in IntelliJ), Build Artifacts, Build

If you want an icon, convert an image to a .ico file

2. Choose your image (file type my vary)
3. Upload
4. Convert to ICO
5. Download your icon

Use Launch4j to create an .exe with custom icon

2. Output file: browse for the output destination and name your file ending with .exe
3. Jar: browse for where you saved your jar or executable jar file
4. (Optional) Icon: browse for your custom icon (must be .ico)
5. navigate to JRE tab
6. Bundled JRE path: Browse for location of your jdk (Example C:\Program Files\Java\jdk-14.0.1)
7. At the top of window, click the Build Wrapper (gear icon)
8. name and save the Lauch4j config file where you want
9. Your application.exe should be saved to your output file location (no longer need previous files)

BroCodez
Автор

Simple, stress free and to the point.

DoFlamingo
Автор

Thank you brother. Simple, quick and no unwarranted jargon. Straight to the point of the video.

aidangaskin
Автор

Please add more projects to this playlist. That way we will be excited and keep motivated while watching the tutorials.

saif
Автор

your saying "sit back, relax and enjoy the show" is just Wow!

Kaizen
Автор

Your videos are the best! I try to search something up and figure it out that way, but it's so complicated! But when I turn on one of your tutorials, I learn so much so quickly! It just becomes so easy!

caidenhiles
Автор

I love your videos man. They help me so much as a new programmer trying to learn java.

oskarremvang
Автор

You made my day, bro. As always, great video.

wolanus
Автор

Oh, wow!!!!
I always wanted a way how to make jave program executable.
This is really... really helpful.
When you upload game series, I will make that game, then turn it into executable so everyone could play, seriously, you helped me a lot!
Thank you from the bottom of my heart.

noah
Автор

Thank you! Easy to follow perfect guide!

somethingelse
Автор

Thank you very much for this great and simple tutorial ! 🙂

daniellamek
Автор

this was EXTREMELY useful and simple. Thank you so much. I really like the content you create. Please do more project type of videos in the future (like creating java games or simple projects)

oguzhantopaloglu
Автор

Thank you, that's extremely helpful!

Snowmanver
Автор

your video is much more worth than many expensive course like your recommendation at first video. thank again bro! :)

jfruit
Автор

Thanks so much for this video. It has all the information and is straight to the point.

Graham_Patch
Автор

Exactly what I was looking for! Thanks Bro!

yuryaraujo
Автор

many thanks ! happy at your methodology

habtamusium
Автор

Thank you for the amazing and simple video!!
At first I was facing a problem that it wouldn't run, I'd double click and nothing so when I changed the 'Open with' to -> 'Java(TM) Platform SE Binary' instead of 'OpenJDK Platform binary' it would open normally, just in case anyone was facing the same issues I was!

sodoityourself
Автор

bro u are a lifesaver huge respect man

khalidbinahsanshuvo
Автор

Thank you so much. You're the best teacher.

ritsathya