Jump to Real's How-to Main page

Create an icon to launch java apps for Windows?

Let's say you have a class named myApp.class and it is located in the directory myJavaApp on drive C:. Then create a Shortcut to the myApp.class. Next edit the properties of the Shortcut and change the line
c:\myjavaapp\MyApp.class   to   javaw MyApp
In the properties tab panel, you also havethe possibility to assign an icon to the Shortcut. If you click on the newly created icon, your Java application will start without opening a DOS box. If your application is Text mode application use "java" instead of "javaw".

If the Microsoft JVM is used then use "wjview" (instead of "jview") to start a GUI Java application from an icon.


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]