Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Run Built Project in Vista

Thread view: 
Leigh - 09 Jan 2008 11:16 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.
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.