How to make a shortcut run a java program

Started by
0 comments, last by Mulligan 21 years ago
If I have a java Program in "C:\Day", and I want to make a shortcut that executes the java program when clicked. What do I have to do to the shircut to make it do that? P.S. My main method is in a file called Main.java. Thanks!
Advertisement
make a batch (.bat) file with one line:

@java Main

and put it in your class directory. You can then create a shortcut to the bat file. Alternatively, make a bat file which points to the right place on your hard disk in the first place:

@java c:\day\Main


[edited by - benjamin bunny on April 17, 2003 12:15:22 PM]

[edited by - benjamin bunny on April 17, 2003 12:17:15 PM]

____________________________________________________________www.elf-stone.com | Automated GL Extension Loading: GLee 5.00 for Win32 and Linux

This topic is closed to new replies.

Advertisement