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 / October 2007

Tip: Looking for answers? Try searching our database.

Open Command Window when Double Clicking jar

Thread view: 
m97rek - 04 Oct 2007 15:33 GMT
Hi,

I have jar file which is nothing more than a command line application
(think Hello World). It works fine from the command prompt but I would
like it to work when double clicking it. When I do so nothing happen.
I assume that the application actually runs in the background.

I run Windows XP if that matter.

Thanks
bcr666 - 04 Oct 2007 20:31 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks

Your problem might be in that when you double click on the Icon, the
program opens a console window, runs, then closes the window.  To get
around this, you can either make your program not close (or take some
user action to close), or you can write a batch file that takes a
parameter (jar file) and executes it, then issues a dos "pause"
command. If you use the second option, you'll need to make sure
windows sends the file to the batch program when you double click on
the .jar.


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.