How to create shortcut icon for java program

前端 未结 11 2643
野性不改
野性不改 2020-12-29 10:57

Hi I have created executable jar of my java program i want to create shortcut icon for that jar. Means may be my jar is in any other memory location of hard drive(eg- D or E

11条回答
  •  感动是毒
    2020-12-29 11:05

    Assume your jar file is in location c:\pgm\abc.jar

    open notepad and type c: cd\ cd pgm java -jar abc.jar

    Then save that notepad document as "anyname.bat"

    Then create a shortcut for that batch file (ie...right click that file and click "Create Shortcut"). You can use this shortcut to run your jar file.

提交回复
热议问题