dcsimg
Is there a way to use Web Start to create a double-clickable Java application?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alex_Chaffee
Posted On:   Thursday, February 27, 2003 08:50 AM

I'd like to deploy my Java application and allow my users to double-click on an icon to launch the application. Mac OS X allows this, but I can't find a way to do this on Windows (without using a batch file or writing an exe).


Essentially, what I'd like is some sort of JAR file that, when you double-click on it, it launches the JRE and executes the application inside -- without needing to reconfigure anything in the user's system. Maybe a new extension -- how about JAP?

Re: Is there a way to use Web Start to create a double-clickable Java application?

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, February 27, 2003 12:23 PM

In Windows you can create a "shortcut" where the "target" property is an arbitrary command line string.

Re: Is there a way to use Web Start to create a double-clickable Java application?

Posted By:   Bahman_Barzideh  
Posted On:   Thursday, February 27, 2003 09:40 AM

I may be reading your question incorrectly but It seems all you want to
do is have an executable JAR file. You can do this by adding a line
of the following format to your JAR file's manifest file
(META-INF/MANIFEST.MF):

Main-Class: [your main class]

where [your main class] is the qualified name for the class that has the
main () in it (something like: a.b.c). Try Executable JAR for more info.



By the way, the reason I am not sure if I have read the question corretly
is that I am not sure what this has to do with Web Start
About | Sitemap | Contact