Run Built Project in Vista

L

Leigh

I'm just starting with Java. I have used NetBeans to write a GUI, which
runs fine in NetBeans. How do I run it in Vista (Home Premium) just
like any other program? Stupid ? I know, but I have had a look through
tutes and docs and help files, and can't see how. Gulp.
 
G

GArlington

I'm just starting with Java. I have used NetBeans to write a GUI, which
runs fine in NetBeans. How do I run it in Vista (Home Premium) just
like any other program? Stupid ? I know, but I have had a look through
tutes and docs and help files, and can't see how. Gulp.

When you build your project in NetBeans it gives you a clue how to run
it...
 
L

Leigh

GArlington said:
When you build your project in NetBeans it gives you a clue how to run
it...
Thanks for the clue. If you mean..

To run this application from the command line without Ant, try:
java -jar
"C:\Users\Leigh\Documents\NetBeansProjects\HelloUniverseApp\dist\HelloUniverseApp.jar"

it's not quite the same as launching an *.exe by clicking (or double
clicking) on it is it? I was hoping for something like that.
 
R

Roedy Green

. How do I run it in Vista (Home Premium) just
like any other program?

you can bundle it in a jar then run it is

myprog.jar if you set up the association for *.jar.

or you can run

java.exe -myprog.jar

See http://mindprod.com/jgloss/jar.html

Or you can compile it with JET into an Exe. They you can run it as

myprog.exe.

see http://mindprod.com/jgloss/jet.html

or you can use various mickey mouse ways to make it look like an exe.

See http://mindprod.com/jgloss/installer.html
http://mindprod.com/jgloss/nativecompiler.html
 
T

Thomas Kellerer

Leigh, 09.01.2008 15:00:
Thanks for the clue. If you mean..

To run this application from the command line without Ant, try:
java -jar
"C:\Users\Leigh\Documents\NetBeansProjects\HelloUniverseApp\dist\HelloUniverseApp.jar"


it's not quite the same as launching an *.exe by clicking (or double
clicking) on it is it? I was hoping for something like that.

You can double-click the jar file if Java is installed properly.

Thomas
 
L

Leigh

Well, wouldn't you know. the Project *jar I was trying to run was
faulty. It all worked fine with a new Project.

thanks all for your tips.

Leigh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top