Java jar file is not working. Help please😊 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java jar file is not working. Help please😊

I maid a small java jar file when I run it on my PC it works but when I copy it to a nother PC it does not work must I install the Java JDK on the other pc

2nd Jun 2018, 9:16 PM
Aiden Brody
Aiden Brody - avatar
6 Answers
+ 1
Thank you man
2nd Jun 2018, 10:02 PM
Aiden Brody
Aiden Brody - avatar
0
Yes, you must install Java on the other PC. also make sure you copy the entire file (with all necessary folders and resources) as well.
2nd Jun 2018, 9:45 PM
Andre Daniel
Andre Daniel - avatar
0
So if I want to make a stand alone program, it wont work on a nother PC if it does not have a Java JDK
2nd Jun 2018, 9:49 PM
Aiden Brody
Aiden Brody - avatar
0
Aiden Brody Standalones i. Java are always exported as .jar files. So you will still need to download jre or jdk (whichever you use) However, there are apps you can use to export it to .exe file, there it should be able to run Java free.
2nd Jun 2018, 9:56 PM
Andre Daniel
Andre Daniel - avatar
0
oky cool thanks do you know one I can use
2nd Jun 2018, 9:58 PM
Aiden Brody
Aiden Brody - avatar
0
Aiden Brody If I remember correctly, you can use an online website such as http://www.jar2exe.com but that requires you to buy a product. I'd just google otherwise for a free program. Best of luck!
2nd Jun 2018, 10:00 PM
Andre Daniel
Andre Daniel - avatar