Re: launching application in Windows without DOS command window
Rowland Smith <[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
Create an executable JAR and you will be able to double-click it and have it launch - this works *without* having Java WebStart installed. Of special importance are the Main-Class and Class-Path manifest entries. Note that you *cannot* embed jars within jars, so any third- party jars you depend on will need to be included in Class-Path. These might help: http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html http://www.javaworld.com/javaworld/javatips/jw-javatip127.html http://www.javaworld.com/javaworld/javatips/jw-javatip120.html Rowland On Sep 8, 2005, at 9:11 PM, Richard O. Hammer wrote: > Is there an easy way to launch a Java Swing application in Windows > 2000 without opening a DOS command window? > > I know that I can make a .bat file containing "java ClassName" and > then double click on the file name, or create a shortcut to > the .bat file, but that always seems to open the command window > which stays open as long as the application is running. > > My Googling has found Java Web Start, a lot about Java Web Start. > I've started looking at that and it looks like probably it would be > easier to learn to use Java Web Start for my "hello world" > application than it would be to get a Masters degree. > > But I still imagine that it can be easy. I am not concerned about > security. I am not loading anything over the net. I just want to > start my local application with no more hassle than starting Notepad. > > Can I create a Windows shortcut that says something like > java -classpath path1;path2 MyClass > to the Windows OS, without opening a command window? > > Thanks, > Rich Hammer > > _______________________________________________ > Juglist mailing list > [email protected] > http://trijug.org/mailman/listinfo/juglist_trijug.org > _______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org