Java executable (.jar) ☕

  Рет қаралды 123,202

Bro Code

Bro Code

Күн бұрын

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
----------------------------------------------------
1. icoconvert.com/ (this is a decent site)
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
----------------------------------------------
1. Install Launch4j launch4j.sourceforge.net/
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)

Пікірлер: 192
@BroCodez
@BroCodez 4 жыл бұрын
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 ---------------------------------------------------- 1. icoconvert.com/ (this is a decent site) 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 ---------------------------------------------- 1. Install Launch4j launch4j.sourceforge.net/ 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)
@LauwaliIsaDk
@LauwaliIsaDk 6 ай бұрын
Good, please help us on how to do it using CLI like command prompt. Three years ago i create one using cmd on windows but when i try to create one which is very big project that has a packages i fail.
@Do7Flamingo
@Do7Flamingo Жыл бұрын
Simple, stress free and to the point.
@Kaizen549
@Kaizen549 6 ай бұрын
your saying "sit back ,relax and enjoy the show" is just Wow!
@aidangaskin8978
@aidangaskin8978 Жыл бұрын
Thank you brother. Simple, quick and no unwarranted jargon. Straight to the point of the video.
@saif37278
@saif37278 2 жыл бұрын
Please add more projects to this playlist. That way we will be excited and keep motivated while watching the tutorials.
@caidenhiles
@caidenhiles 8 ай бұрын
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!
@oskarremvang1226
@oskarremvang1226 3 жыл бұрын
I love your videos man. They help me so much as a new programmer trying to learn java.
@wolanus
@wolanus 3 жыл бұрын
You made my day, bro. As always, great video.
@noah77
@noah77 4 жыл бұрын
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.
@BroCodez
@BroCodez 4 жыл бұрын
You're welcome! Hopefully these steps work for you
@noah77
@noah77 4 жыл бұрын
@@BroCodez don't worry bro, it's working:)
@somethingelse401
@somethingelse401 2 жыл бұрын
Thank you! Easy to follow perfect guide!
@daniellamek1079
@daniellamek1079 Жыл бұрын
Thank you very much for this great and simple tutorial ! 🙂
@oguzhantopaloglu9442
@oguzhantopaloglu9442 3 жыл бұрын
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)
@BroCodez
@BroCodez 3 жыл бұрын
thanks for watching Oğuzhan. I might if the people demand it lol
@caidenhiles
@caidenhiles 8 ай бұрын
I demand it bro!
@LauwaliIsaDk
@LauwaliIsaDk 6 ай бұрын
We demand it really.
@124k3_
@124k3_ 6 ай бұрын
bro is the exe file sharable. i. e if i share that file to my friend (would he be able to run the file) give that he has JRE
@longkesh1971
@longkesh1971 Жыл бұрын
Thank you for making these videos.
@Snowmanver2
@Snowmanver2 2 жыл бұрын
Thank you, that's extremely helpful!
@jfruit6310
@jfruit6310 3 жыл бұрын
your video is much more worth than many expensive course like your recommendation at first video. thank again bro! :)
@BroCodez
@BroCodez 3 жыл бұрын
thanks for watching Jfrauit!
@codeJamalonRH
@codeJamalonRH Жыл бұрын
Nice an awesome video like always! Commenting for YT algorithm
@hassanwho8983
@hassanwho8983 20 сағат бұрын
man thanks to this guy's videos i feel motivated to learn other videos i c teaching feel so dull Bro Code is the best channel for learning i found so far your efforts are much appreciated
@sodoityourself5920
@sodoityourself5920 Жыл бұрын
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!
@user-ib3er4sv9k
@user-ib3er4sv9k Жыл бұрын
thanks
@6c_33_riteshkumar6
@6c_33_riteshkumar6 11 ай бұрын
Thanks buddy😊
@redappleapple622
@redappleapple622 9 ай бұрын
Not working still
@Graham_Patch
@Graham_Patch 5 ай бұрын
Thanks so much for this video. It has all the information and is straight to the point.
@yuryaraujo1612
@yuryaraujo1612 Жыл бұрын
Exactly what I was looking for! Thanks Bro!
@codeJamalonRH
@codeJamalonRH Жыл бұрын
Nice an awesome video like always! Commenting for YT algorithm
@igorsantanas
@igorsantanas 2 жыл бұрын
Wow, that was great. Thank you!!
@habtamusium8646
@habtamusium8646 Жыл бұрын
many thanks ! happy at your methodology
@MrOles46
@MrOles46 2 жыл бұрын
Thanks, really helpful! 🤝
@ritsathya6737
@ritsathya6737 3 жыл бұрын
Thank you so much. You're the best teacher.
@codeJamalonRH
@codeJamalonRH Жыл бұрын
Nice an awesome video like always! Commenting for YT algorithm
@TheReal4L3X
@TheReal4L3X Жыл бұрын
bro really tried to sneak his nuclear launch codes folder in there and thought we wouldnt notice 💀💀. jokes aside great video
@khalidbinahsanshuvo1306
@khalidbinahsanshuvo1306 23 күн бұрын
bro u are a lifesaver huge respect man
@puneetshakya3001
@puneetshakya3001 3 жыл бұрын
Simply genius bro
@yusuphmwaigomole3104
@yusuphmwaigomole3104 Жыл бұрын
This is what I wanted the most
@warthundertryhard4796
@warthundertryhard4796 3 жыл бұрын
i was looking for this, thanx bro
@Siva-ne6ys
@Siva-ne6ys Жыл бұрын
Thank you so much for this video
@nawfalnjm5699
@nawfalnjm5699 3 жыл бұрын
thank you , great video !
@faizalimuhammadzoda4731
@faizalimuhammadzoda4731 2 жыл бұрын
Very simple explanation. Very humble teacher.
@codeJamalonRH
@codeJamalonRH Жыл бұрын
Nice an awesome video like always! Commenting for YT algorithm
@hamidja1537
@hamidja1537 Жыл бұрын
Thanks for sharing
@rul1175
@rul1175 6 ай бұрын
I finished C, Java, next MySQL. Thanks a million!!!
@Rohinth
@Rohinth 3 жыл бұрын
Helpful video bro
@matchkraft4296
@matchkraft4296 Жыл бұрын
Best tutorial, thanks
@tusharkudave6105
@tusharkudave6105 2 жыл бұрын
Extremely useful video. This is what I want !!!! Great Keep making such great videos.
@lightonkamangamefgi2442
@lightonkamangamefgi2442 2 жыл бұрын
Just what I was in need of. I can only say Thank you. and thank you for the invitation. I'm in
@eugenezuev7349
@eugenezuev7349 10 күн бұрын
understandable and comprehensible
@alisrour84
@alisrour84 Жыл бұрын
bro you are so helpful thanks for your work
@user-vv4bx7ih9b
@user-vv4bx7ih9b 17 күн бұрын
thanks :D helps a lot to know this trick
@user-zh5sv3op3n
@user-zh5sv3op3n Жыл бұрын
thanks, appreciate it!
@jlei6802
@jlei6802 3 жыл бұрын
Great Vid... thank you
@mihanfernando9890
@mihanfernando9890 Жыл бұрын
this man is a legend
@parshvpanchal6561
@parshvpanchal6561 4 жыл бұрын
You are the best
@yusufaksoy3693
@yusufaksoy3693 9 ай бұрын
nice tutorial
@kemann3815
@kemann3815 2 жыл бұрын
Awesome
@codeJamalonRH
@codeJamalonRH Жыл бұрын
Nice an awesome video like always! Commenting for YT algorithmNice an awesome video like always! Commenting for YT algorithm
@girl6994
@girl6994 4 жыл бұрын
Thank you for made how to do this on IntelliJ
@stormybear4986
@stormybear4986 2 жыл бұрын
Great tut. II'm kinda ' old school, I prefer to do it on the command line. Thanks1
@lowlevelcodingch
@lowlevelcodingch 9 күн бұрын
Cool!
@godfryddolbinczykunical1571
@godfryddolbinczykunical1571 Жыл бұрын
Cool video. I have question for you: do web applications will destroy desktop, mobile and .jar applications?
@jankubik2838
@jankubik2838 2 жыл бұрын
Very good. Can you show us also how to make an executable jar from JvaFX project, pleae?
@teixobactin8570
@teixobactin8570 3 жыл бұрын
Thanks bro. İt s helpful..
@bendofver
@bendofver Жыл бұрын
THANK YOU SO MUCH
@gogoi.
@gogoi. 3 жыл бұрын
Thank You
@MrLoser-ks2xn
@MrLoser-ks2xn Жыл бұрын
Thanks!
@HelPfeffer
@HelPfeffer 11 ай бұрын
I liked this video
@boymores2123
@boymores2123 3 жыл бұрын
thank you dude ur literally my teacher lol
@percivalgebashe4376
@percivalgebashe4376 Жыл бұрын
Nice
@jasonadams8645
@jasonadams8645 3 жыл бұрын
thanks bro!
@fl3xr
@fl3xr 3 ай бұрын
nobody talking about how bro casually has a folder of nuclear launch codes?
@campfiregames4633
@campfiregames4633 Жыл бұрын
Thank you
@BrianKeeley-wo4fj
@BrianKeeley-wo4fj 2 ай бұрын
Bro has the nuclear launch codes casually on his desktop
@HarkiratSingh-gu2qg
@HarkiratSingh-gu2qg 3 ай бұрын
bro had nuclear launch codes hahahahah(quagmire's laugh) 6:35
@TheUpView
@TheUpView 7 ай бұрын
Awesome!!! I just need to have a mobile exe file
@33dua86
@33dua86 Жыл бұрын
thnkzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz broooooooooooooooooooooooooo
@finnickaldrich2208
@finnickaldrich2208 2 жыл бұрын
Can you show us on how to do it on the terminal?
@shubhambelwal674
@shubhambelwal674 2 ай бұрын
❤❤
@robertraafat413
@robertraafat413 2 жыл бұрын
Fellow bro
@EdwardChan.999
@EdwardChan.999 5 ай бұрын
Nice, my friend doesn't know how to run a .jar file and I would've unfriended him if not for this video :D
@flamelier
@flamelier Жыл бұрын
My program runs fine in eclipse and the JavaFX works great but when I export it as an executable and then try to run it. Nothing happens. Any idea why?
@alexlupu3935
@alexlupu3935 Жыл бұрын
I have the same problem, how did you solve it?
@fraionhyudz7053
@fraionhyudz7053 Жыл бұрын
Bro, do you have tutorials on how to do it in vscode? I exported mine as jar file and after I open it, it does nothing
@tollernamen8699
@tollernamen8699 Жыл бұрын
Noice
@rinadem5219
@rinadem5219 Жыл бұрын
amazing QUESTION
@br_kanata
@br_kanata Жыл бұрын
vscode user sitting in the back 🗿
@Blaze_-is9yb
@Blaze_-is9yb 11 ай бұрын
Can make it as an standalone executable, where u dont need jvm to run?
@mkdm3617
@mkdm3617 Жыл бұрын
BRO CODE! I have the same desktop photo on your PC!
@valentine5062
@valentine5062 2 жыл бұрын
If my app is using javaFX would I need to add the path to that one instead?
@user-cv8to2zw1c
@user-cv8to2zw1c Жыл бұрын
hey brocode, i just wanna ask about this weird situation, somehow my app does not open when its on desktop, but when its inside my dist folder it works perfectly fine. can anyone help? id really appreciate it.
@Hortzy
@Hortzy 10 ай бұрын
Does this work / is the process the same on Mac?
@when2213
@when2213 11 ай бұрын
after i clicked "finished" and "ok" and tried to click the jar file on the desktop and its not running, the cmd just appeared like a second then disappear and wont run. Can you help me
@twisty8005
@twisty8005 2 жыл бұрын
for some reason my jar file doesn't work on another computer, may I ask why? it says " A JNI error has occured, please check your installation and try again"
@benjaminkoch2380
@benjaminkoch2380 5 ай бұрын
Maybe its missing some files?
@ajdndbdjbdj
@ajdndbdjbdj 5 ай бұрын
What if i use net beans?
@udorandomsketches5726
@udorandomsketches5726 2 жыл бұрын
Bro code is the best code 😌
@anusubbi4286
@anusubbi4286 2 жыл бұрын
while exporting it's export in zipped format folder not like runnable file. how slove this??
@twisted_cpp
@twisted_cpp 2 жыл бұрын
will the .exe file run on other computers if I send it to them?
@Overseer190
@Overseer190 Ай бұрын
program quickly appears then disappears. Everything is properly installed. When trying to run it from the cmd line, it claims that it cant find the main class when it's there. How to fix?
@renecabuhan1675
@renecabuhan1675 3 жыл бұрын
Bro , I downloaded this video hehe thank you.
@ngcobonkululeko402
@ngcobonkululeko402 8 ай бұрын
maybe my java is configured incorrectly but i followed your exact instruction exactly but it didn't work even the one with the original java icon didn't open
@almahfuz777
@almahfuz777 11 ай бұрын
I followed the same way you showed with IntelliJ. But after I run the jar file, it shows "A JNI error has occurred"
@johnchristianmakalintal568
@johnchristianmakalintal568 2 жыл бұрын
Will this run to other computers without java?
@naliszorn
@naliszorn 3 жыл бұрын
Hey, nice Tutorial, but i can't get the Jar Working. i don't know how to solve. Error: A JNI error has occurre, please check your Installation and try again ? Windowname: Java Virtual Machine Launcher, ive made a Quiz with your other Tutorial with Swing
@raidenmgs7608
@raidenmgs7608 2 жыл бұрын
For some reason, the images I added to my program don't show up in the .jar application, however, they do show up when I run the program in NetBeans. Is there any solution to this problem?
@pho328
@pho328 Жыл бұрын
hi, i am having this same problem as you, how did you solve it? please help me.
@shani7235
@shani7235 Жыл бұрын
Copy those which you use in your profgram and past you jar program folder
@fanren3391
@fanren3391 Жыл бұрын
Thank you the videos the realy help me. Sorry bro code. Please can help. There is the problem. I want to export a java program in exe file but with the database includes in the exe file so when i installe this program in another computer so i can just enter data without a database on this pc. Well i dont know if my explain is correct. Thanks again
@diwashbhatta4594
@diwashbhatta4594 2 жыл бұрын
Bro does we edit jar file , i have a assignment given jar file of graphics of a turtle where i have to edit a code and make a turtle to move but jar cant even access in eclips its shows source not found and in intelijj it runs but cant run
@omererkul1669
@omererkul1669 2 жыл бұрын
Bro help me out, i cant make runnable JAR file with the VM argument inside, so i need to call this Jar file with the VM argrument in cmd, i dont know how to open my JavaFX program by simple click?
@Jellonova
@Jellonova 3 жыл бұрын
I can't run my jar files made with jdk14. I have tried using jre8 and using the java.exe in jdk14 but none of them work. Please help
@vishalrathore9859
@vishalrathore9859 Жыл бұрын
I am also facing the Same problem but the solution did not get.
@coolguy652
@coolguy652 2 жыл бұрын
Hello. I really appreciate your videos, keep up the good work! I encountered a problem with the Launch4j program. When I tried to use the "Build wrapper" function, I got this Error message: "net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "./bin/ld": error=2, No such file or directory" Any help is much appreciated :)
@raffazaver
@raffazaver 8 ай бұрын
it's been a year since you wrote your comment but just in case,,, i had the same problem when i tried to do a cmd command and i had the same problem in my case with the cmd program i did this: String command = "ipconfig"; // Just the command name without "cmd /c" for Windows // Create a ProcessBuilder ProcessBuilder processBuilder = new ProcessBuilder("cmd.exe", "/c", command); // Redirect the error stream to the output stream processBuilder.redirectErrorStream(true); // Start the process Process process = processBuilder.start();
@ayman8509
@ayman8509 3 жыл бұрын
how can i include a jvm to my project so i can send it to my friend without him having to dowload one
Java encryption program 🔑
32:06
Bro Code
Рет қаралды 43 М.
What is the Smallest Possible .EXE?
17:57
Inkbox
Рет қаралды 106 М.
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 10 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
I Tested Every FREE Drawing App
22:15
viyaura
Рет қаралды 115 М.
Its Finally Here...
8:09
Chaseroony
Рет қаралды 70 М.
Java snake game 🐍
43:30
Bro Code
Рет қаралды 1,5 МЛН
How to convert jar file to exe with your own icon | Tech Projects
3:03
Java Beginner Tutorial 7 - JAR (Java Archive) basics
10:59
Automation Step by Step
Рет қаралды 100 М.
How to open Java files in Windows - Run .JAR Files
3:35
TechHut
Рет қаралды 454 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 411 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,3 МЛН