Running JAVA Applications from Desktop Icons



1) Put the program you want to run in the same folder as the JAVAW.exe file.

2) Create a shortcut to the program on your desktop.

3) Right click the shortcut ( now on your desktop ) and in the "pop up box" click "properties"

4) The "pop up box" target entry shows the address that the shortcut is pointing to. It should look something like:

C:\j2sdk1.4.0\bin\Program

Change it to something like:

C:\j2sdk1.4.0\bin\JAVAW.EXE Program

5) On my computer the Icon changes to the EXE type icon.

6) Now when you click the Icon, your JAVA Application will pop up and automatically run!

note: this works best on "windows" type applications, not "console" type applications. Using JAVA instead of JAVAW brings up the DOS console window first. Applets can be run from desktop icons this way by using the APPLETVIEWER.EXE or pointing to a small HTML file that calls the Applet.

 

 

 

Back to Main Page