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 / Tools / October 2003

Tip: Looking for answers? Try searching our database.

What command to put in batch file to invoke java gui program

Thread view: 
code_wrong - 25 Oct 2003 02:01 GMT
Hi,
I want to execute a java GUI program outside of the IDE. I don't want to use
an installer at this stage.
I know one can invoke a command line java app by typing: java some_class at
the command line, but can't figure out how to invoke a GUI app.
TIA
cw
code_wrong - 25 Oct 2003 15:28 GMT
> Hi,
> I want to execute a java GUI program outside of the IDE. I don't want to use
> an installer at this stage.
> I know one can invoke a command line java app by typing: java some_class at
> the command line, but can't figure out how to invoke a GUI app.

its ok I found the answer on the sun site
I need to set up a shortcut and include the command in the path
eg.
javaw[space][optional_switches][path][space][class_name]
Bryan E. Boone - 26 Oct 2003 21:12 GMT
If you put the classpath and tell the jvm what the main class is in the
manifest, then
you [potentially] won't need a batch file.

You can use java -jar [jar_file.jar]
Much nicer than a batch file IMHO.

-Bryan

> > Hi,
> > I want to execute a java GUI program outside of the IDE. I don't want to
[quoted text clipped - 8 lines]
> eg.
> javaw[space][optional_switches][path][space][class_name]


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



©2008 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.