How to create a .exe file in netbeans?

I created a project in netbeans and I want it to run on another computer without installing netbeans (like .exe in visual basic).

I hit F11 and I got the lib folder which has a .jar file on it. But then I do not know how to do this, and what do I need to double-click?

Can anyone guide me?

+8
java exe jar netbeans
source share
3 answers

If you created a java project, then the java runtime must be installed on the "other" computer so that the jar runs there (java -jar your.jar), otherwise, if you really want to use .exe one of the many jar2exe converters, found on the omnipotent Internet, such as http://www.ucware.com/jexec/index.htm

+3
source share

To run the jar file on another computer, you must have at least jdk. They do not need to install NetBeans, but you must first establish a database connection for the PC and your database. Once connected, simply double-click the jar file that your project will run.

To learn how to create a Jar file in NetBeans, check out this link.

+1
source share

What project is this desktop application or web application? If you use java, then for the desktop application you need to create * .JAR and for the Internet: * .WAR.

There is a simple step to create jar / war. follow the instructions.

0
source share

All Articles