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.
GArlington - 09 Jan 2008 11:57 GMT
> 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...
Leigh - 09 Jan 2008 14:00 GMT
>> 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
[quoted text clipped - 3 lines]
> 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.
Thomas Kellerer - 09 Jan 2008 14:51 GMT
Leigh, 09.01.2008 15:00:
>>> 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
[quoted text clipped - 11 lines]
> 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
Leigh - 10 Jan 2008 00:09 GMT
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
Roedy Green - 09 Jan 2008 14:06 GMT
>. 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

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Leigh - 09 Jan 2008 14:41 GMT
Thanks Roedy,
You have given me some good pointers (pun intended).
Leigh
>> . How do I run it in Vista (Home Premium) just
>> like any other program?
[quoted text clipped - 19 lines]
> See http://mindprod.com/jgloss/installer.html
> http://mindprod.com/jgloss/nativecompiler.html