Geo Gkolfi
Geo Gkolfi

Reputation: 21

How to run a netbeans project without having installed the netbeans? :-)

I need to make an answering questions game and I chose to make it using netbeans. I wonder if I can create an executable so that somebody could "play" the game even if he does not have installed netbeans! Any ideas please?

Upvotes: 2

Views: 10362

Answers (4)

Incognito
Incognito

Reputation: 16597

Developed program has nothing to do with IDE. It doesn't need IDE to be executed...

Upvotes: 2

Lasse Samson
Lasse Samson

Reputation: 1752

In NetBeans set your application as the active project and press F11, which builds the project. This means that your application will be packaged into an executable jar file that you friend can click to run your application. Once you have clicked F11 you can locate the executable jar file at e.g. ../Documents/NetBeansProjects/ProjectName/Dist

Upvotes: 7

BalusC
BalusC

Reputation: 1109695

There is a misconception: Netbeans is not a runtime platform. Netbeans is just a tool to build Java applications. You can perfectly create the same Java application with just notepad.exe and the JDK, you only need to have a bit more knowledge and experience to do it rapidly enough.

To run a Java application, all the enduser needs to have installed is a JRE. To create a runnable Java application, all you need to do is to export the Netbeans project as an executable JAR file.

Upvotes: 2

erjiang
erjiang

Reputation: 45757

When you build it, a JAR (Java archive) will be created (look in your dist/ directory or your project properties). If you've set up your project correctly, launching that JAR will start your application. See http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html

Upvotes: 1

Related Questions