Windows 8 and 8.1 Forums


Pin a .jar to the taskbar (read post for specifics)

  1. #1


    Posts : 40
    Windows 8.1

    Pin a .jar to the taskbar (read post for specifics)


    I'd like to pin a .jar file to the taskbar, but in a way, that the pinned icon doesn't open a new instance of the program on the task bar, but uses the pinned icon itself as the application taskbar button.


    javaw.exe -jar "C:\path\to\executable.jar"
    cmd.exe /c "C:\path\to\executable.jar"

    both create new instances on the taskbar, and these are the only two solutions I could come up with. I know that they create new instances, because the targets of the respective pinned icons are cmd.exe and javaw.exe, while the .jar file is just an argument, so basically I would need a way to pin the .jar file as target to my taskbar, I just don't know how (if it's possible at all).

    Thanks in advance!

      My System SpecsSystem Spec

  2. #2


    Posts : 2,627
    win8.1.1 enterprise


    hello ,to the best of my knowledge you can only pin program icons to the taskbar ,pining a file format [like.jar]icon to the taskbar will just open the program associated to the file type .in your case java . to the best of my knowledge that how it will work
      My System SpecsSystem Spec

  3. #3


    Posts : 40
    Windows 8.1


    Yes, that is the problem. I can only pin executable files to the taskbar, and a java app is not an executable per se.

    I even tried an exe wrapper, but that doesn't really solve anything, since the wrapper extracts the jar file first, then runs it, so in appearance it's not any different than just pinning a shortcut with the aforementioned two commands to the taskbar.
      My System SpecsSystem Spec

  4. #4


    Posts : 1
    Windows 7


    A late reply but I was just looking for this and found it out myself. The reason is when you write javaw.exe, it does not map to the exact same location as when the process spawns. The path of the spawned process has to match the shortcut's path in order not to spawn a new icon.

    For example, my shortcut is "C:\Java\Jdk8x64\bin\javaw.exe" -jar "executable.jar"
      My System SpecsSystem Spec

  5. #5


    Posts : 40
    Windows 8.1


    Yea, I ended up with a similar solution. I just pinned javaw.exe to my taskbar, and I'm accessing the jar file through its jump list.
      My System SpecsSystem Spec

Pin a .jar to the taskbar (read post for specifics)
Related Threads
Solved Read Only in General Support
My wife has new Dell 'all in one' Desk Top. Copied all files from backup drive to USERS directory on Dell. I can retrieve file to modify it but it says 'read only'. I can modify file but when I try to save it a message 'READ ONLY' comes up. I have been through the properties of the directories and...
Solved How to read HDD in Drivers & Hardware
Hi @ll, I just finished a clean install. Win.8.1.1 is not reading my backup HDD 2TB. Here is a png and I need that to be able to installed my others software from my only backup. 41709 Thank you.:cool:
Taskbar - any way to make the taskbar size smaller? Seems like the size of the tabs at bottom (with programs open) are quite large. Thanks Peter
Cant disable Read Only in General Support
29882 Hello I cant disable the READ ONLY attribute! I tried everything but nothing helps. I tried RUN as administator with this code: attrib -r "C:\Program\SIMCITY\*.*'' But it doesnt do anything. Could somebody please help me and give me the correct code/path.
Solved Data CD not being read in General Support
I'm concerned that I might have disabled a utility using Task Manager's advice for saving memory. I put in a Data CD and it isn't noticed. (Audio CDs are rocognized as "Audio CD" with no ID info). I went to the Windows troubleshooting page and clicked the "fix it" link and the CD was picked up...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook