How to start a java application
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Holsbeeks
Posted On:   Monday, May 13, 2002 12:31 AM

I would like to have my java application's icon on my desk top, and start in on double click.


I created a shortcut, on double click a dos prompt opens and my application starts.


The dos prompt stays open all the time.


Is there a way to hide that annoying dos prompt?


Is there another way to start a java application?

Re: How to start a java application

Posted By:   Sebastien_Meric  
Posted On:   Monday, May 13, 2002 10:37 PM

A very convinient way is to create a jar file with a manifest that would contain the field
Main-Class=my.main.Class


then you double-click the jar and it runs


If you need to indicate some class path you may also do so in the manifest.


more info at : http://java.sun.com/docs/books/tutorial/jar/basics/manifest.html

Re: How to start a java application

Posted By:   mikkel_bruun  
Posted On:   Monday, May 13, 2002 01:36 AM

use javaw.exe instead of java.exe
About | Sitemap | Contact