Hack Forums
[Java] How to execute .jar file to .exe in netbeans - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] How to execute .jar file to .exe in netbeans (/showthread.php?tid=5882669)



How to execute .jar file to .exe in netbeans - cyberm3 - Sep 8, 2018

I"m new to java programming. So recently I built a simple scientific calculator using netbeans ide.
Please, I need a guide on how to deploy the source .jar file into an executable Windows program to share to my buddies out there.


RE: How to execute .jar file to .exe in netbeans - GenericSkid - Sep 8, 2018

You don't need to. You can run your jar with "java -jar MyJar.jar"


RE: How to execute .jar file to .exe in netbeans - cyberm3 - Sep 15, 2018

(Sep 8, 2018 12:48 PM)GenericSkid Wrote:  You don't need to. You can run your jar with "java -jar MyJar.jar"
Is like you don't get my question.
I meant how to convert my compile java project to run as a .exe extension.
I tried lauch4j but it gave me an error when I tried to run the program.


RE: How to execute .jar file to .exe in netbeans - GenericSkid - Sep 15, 2018

(Sep 15, 2018 06:22 AM)cyberm3 Wrote:  Is like you don't get my question.
I meant how to convert my compile java project to run as a .exe extension.
I tried lauch4j but it gave me an error when I tried to run the program.

Well, I thought it didn't make sense. Its a simple application being shared among friends, so why do this extra step?

Anyways what was the Launch4J error? Can't help ya without knowing specifics of the problem.