How to make a shortcut run a java program
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!
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]
@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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement