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 drive for windows) but my icon must be at Desktop. So that if i double click on icon from desktop then my application will start. How to create this
Thanks Sunil Kumar Sahoo
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"
Click next, type shortcut name ant press Finish.
That's all! :)
Then You can set custom icon:
Right click on shortcut -> Properties -> Change Icon...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With