• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create shortcut to application

 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to create a shortcut in the desktop to open an application.

the command way is like this:


there is a way create shortcut with some command but i dont know how..

any one knows ? please...
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought you were supposed to do that by creating a .jar file with the location of the main method quoted in the manifest file. In the bit about "deployment" in the Java Tutorial, look for the bit about setting an entry point.

Not that I have ever got it to work. I tend to take the easy way out (Eclipse).
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you just want a shortcut to run the Application.class file from the desktop:

R/Click Desktop
Select New -> Shortcut
Command Line =
C:\WINDOWS\javaw.exe -classpath "C:\" Application
Select name Application (?)
finish

shortcut now on desktop
single (or double) click the shortcut

if it doesn't work (sometimes working off C:\ is funny)
r/click the shortcut
properties
change
C:\WINDOWS\javaw.exe -classpath "C:\" Application to
C:\WINDOWS\javaw.exe -classpath "C:\ " Application

extra 'space' after C:\
 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic