Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried to conver my netbeans java project to exe or .bat file but i couldn't.I used exe4j,launch4j exelisor this all softwares.but exe file is not opening. its a small calculator i want to use that without install in any pc

What I have tried:

I tried to conver my netbeans java project to exe or .bat file but i couldn't.I used exe4j,launch4j exelisor this all softwares.but exe file is not opening. its a small calculator i want to use that without install in any pc
Posted
Updated 13-Aug-17 21:56pm
Comments
Afzaal Ahmad Zeeshan 14-Aug-17 5:54am    
If you want to convert a Java project's executable to an .exe, then it kills the purpose of using Java in the first place. Consider using C++, Python or any other language, even C# can do a better job at this.

Java should be left as a jar package and then executed through the JVM, instead of native executions.

Every .EXE builder for Java apps I know of still need the JRE installed on the machine in order to run.

As far as I know, there is no straight .EXE compiler for Java where you don't need to install anything before hand to get the resulting .EXE to run.
 
Share this answer
 
Comments
Member 13359493 23-Aug-17 14:37pm    
i converted to exe but that exe can't open
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900