aspose file tools*
The moose likes Beginning Java and the fly likes To create a desktop short cut icon for the standalone application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "To create a desktop short cut icon for the standalone application" Watch "To create a desktop short cut icon for the standalone application" New topic
Author

To create a desktop short cut icon for the standalone application

VenuArchana Aradhyula
Greenhorn

Joined: Sep 02, 2008
Posts: 13
Hi

I have created a jar file for my standalone application. What i wanted is to create a short cut icon on the desktop for the application. Instead of user double clicking on the jar file, the user can click on the short cut icon to open the application.

Suggest me,

Thanks in advance.

Archana.
Ajay Njallacattu
Ranch Hand

Joined: Nov 21, 2006
Posts: 39
Hi,

Run the jar file from a bat file. Then make a shortcut of the bat file on your desktop.

Regards

Ajay
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3669
    
  15
Searching the forums is always a good idea.
Many questions have been asked before


Joanne
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624

You can also use a Java cross platform installer. They will create shell scripts and batch files to launch an application, and can also create shortcuts. Launch4j is a freeware installer, and install4j is a popular and well designed commercial product; worth the licensing cost. (The makers of install4j also have a product called exe4j which creates only a Windows install, so it has a lower licensing cost.)
[ September 02, 2008: Message edited by: Mark Vedder ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

InnoSetup and NSIS are other popular free installer creators, although if I recall correctly only for Windows.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: To create a desktop short cut icon for the standalone application