Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

To create a desktop short cut icon for the standalone application

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

Regards

Ajay
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Searching the forums is always a good idea.
Many questions have been asked before
 
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 22662
127
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
InnoSetup and NSIS are other popular free installer creators, although if I recall correctly only for Windows.
 
reply
    Bookmark Topic Watch Topic
  • New Topic