Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a .exe file in netbeans?

I've created a project in netbeans and I want it to be runnable in another computer without having the netbeans installed (just like a .exe in visual basic).

I pressed F11 and I got a lib folder which has a .jar file on it. But then I don't know how to work it out, which one do I have to double click?

Can anyone please guide me?

like image 525
gerry chocolatos Avatar asked Mar 23 '11 07:03

gerry chocolatos


People also ask

How can make exe file from JAR file in NetBeans?

So, go to the Classpath tab when you have to execute a different class than the default class assigned by Netbeans IDE. Select the Custom classpath and select the same . jar file to the *Main class field. That will automatically detect which class has to be executed at first.

How do I create a new file in NetBeans?

In the NetBeans IDE, choose File | New Project.... NetBeans IDE with the File | New Project menu item selected. In the New Project wizard, expand the Java category and select Java Application as shown in the following figure: NetBeans IDE, New Project wizard, Choose Project page.

Can I create app in NetBeans?

NetBeans IDE offers a development environment to create applications using Java, HTML, JavaScript, PHP, and C/C++. In this tutorial, we will focus on the use of this universal editor that has inbuilt support for: Various versioning tools such as Subversion, Git, Mercurial.


2 Answers

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 http://www.ucware.com/jexec/index.htm

like image 144
Ferenc Deak Avatar answered Sep 20 '22 22:09

Ferenc Deak


To run jar file on other computer you should have at least jdk. Their is no need to install NetBeans but you have to first set database connectivity to pc and your database. After connectivity just double click on jar file your project will run.

To know how to create Jar file in NetBeans check this link.

like image 36
arun Avatar answered Sep 17 '22 22:09

arun