Windows 7 - How to pin a .jar to the taskbar?
Solution 1:
Similar to MJH's answer, but instead of cmd.exe
, you could specify the following path to the executable to avoid having the Command Prompt showing up:
javaw.exe -jar "C:\path\to\your\executable.jar"
If you are the developer of the Java project, you might want to see my answer on StackOverflow as to getting it to play nicely with Windows 7.
Solution 2:
Create shortcut for cmd.exe
Right click the shortcut and select properties.
In the box for Target, go to the end of
%SystemRoot%\system32\cmd.exe
.After that Target, type a SPACE and then
/C
, another SPACE and the path to the .jar file.Pin the shortcut to the taskbar.
You can also change the Icon or click the General tab and change the name of the shortcut if you wish.
Solution 3:
as this answer says, you should only type in your target properties of your shortcut:
explorer "path_of_jar_file"
just this!