How to create shortcut icon for java program

前端 未结 11 2644
野性不改
野性不改 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:11

    100% Working native windows shortcut for jar execution:

    First create regular windows shortcut (right click on desktop, new -> shortcut)
    In text field "Type the location of the item" write:
    "C:\path\to\javaw.exe" -jar "C:\path\to\jar\myExecutableJar.jar"

    enter image description here

    Click next, type shortcut name ant press Finish.

    That's all! :)

    Then You can set custom icon:

    Right click on shortcut -> Properties -> Change Icon...

    enter image description here

提交回复
热议问题