Create an .exe file from Java project

124 views Asked by At

So i just finished a small Java program that I've been working on throughout the week and I want to generate an .exe file of it so I can share with my friends. I'm working on Apache Netbeans 11.3 and JDK 8. I can successfully generate the .jar file but that's pretty much useless.

1

There are 1 answers

0
sarwadnya deshpande On

If you created a java project, then the "other" computer should have the java runtime installed, in order for the jar to be executed there (java -jar your.jar) otherwise if you really want an .exe use one of the many jar2exe converters found on the almighty internet, such as ja2exe you can download it