0

I have a jar file myJar.zip . I open it from cmd

c:\users\owner>cd myfolder
c:\users\owner\myFolder>java -jar myJar.zip   

How would I create a desktop shortcut that would do this ?

jbindel
  • 5,535
  • 2
  • 25
  • 38
Azamat Bagatov
  • 289
  • 3
  • 11
  • 26
  • 1
    Run this in the prompt `echo "java -jar c:\users\owner\myFolder\myJar.zip" > c:\users\owner\Desktop\foofoo.bat` – Bleeding Fingers Mar 06 '14 at 19:01
  • See http://stackoverflow.com/questions/2622062/run-jar-from-batch-file, second post. – exception1 Mar 06 '14 at 19:01
  • Read this link: [Oracle Documentation](http://docs.oracle.com/javase/tutorial/deployment/jar/index.html) It talks about creating an executable from a `jar`. This link: [Executable JAR File](http://introcs.cs.princeton.edu/java/85application/jar/jar.html) will also help you. Cheers – Jukebocks77 Mar 06 '14 at 19:00

0 Answers0