Pin Eclipse Helios to Windows 7 Taskbar

eclipse-jumplistEclipse 3.6 “Helios” has Windows 7 taskbar jump lists and can be pinned to the task bar like  a native app but they don’t work out-of-the-box. The jump lists items generate a bonk error dialog complaining that Java cannot be found and the pin this program to taskbar option is missing.

In order for the Windows 7 taskbar features of Eclipse 3.6 to work, eclipse needs to know where Java is installed. That means editing eclipse.ini  to add a ”-vm” argument followed by the path to your Java runtime. Eclipse.ini is located in the same directory as eclipse.exe and the “–vm” argument has to be the very first line in eclipse.ini or Eclipse will complain a big error dialog that says the Java VM could not be found and refuse to start.

eclipse-ini

After adding the path to your Java runtime environment to eclipse.ini, start Eclipse but wait until after Eclipse has finished loading your workspace before attempting to pin it to the taskbar. Once the workspace has been loaded, you can pin the Eclipse icon to the Windows 7 taskbar and it will work like any other app. If you don’t wait until after the Workspace is running, you’ll end up getting a second eclipse icon every time you start Eclipse just like with Eclipse 3.5 and Netbeans 6.8.

This solution is working for me Eclipse 3.6.0 for Windows 64 bit running on Sun (Oracle) Java 1.6.0_20 64-bit on Windows 7 x64 Enterprise.

Via bugs.eclipse.org: bug 314805.

About these ads

48 Responses to Pin Eclipse Helios to Windows 7 Taskbar

  1. IanG says:

    Thank you! This little quirk was driving me mad!

  2. Daniel says:

    Thanks alot, this helped me aswell running Eclipse Helios PDT on Java 1.6.0_21 Win 7 Profssional x64.

  3. Andreas says:

    Thank you very much. So annoying.

  4. Teodor B says:

    Thanks for the hint about when to pin Eclipse to the Win 7 taskbar

  5. c0 says:

    Thanks a lot, the double icons in the taskbar where driving me crazy.

  6. Sven says:

    Thanks a lot! :)

  7. Daniel says:

    Excellent, easy fix! One minor issue is that when you pin it to the taskbar it reverts from the Eclipse EE logo to the standard Eclipse logo. Any insight to this?

  8. Anton says:

    Thanks man! Your advice really helped!

  9. danda says:

    It work, thanks a lot!

  10. Pingback: Confluence: Engineering

  11. DB says:

    Thanks! =)

  12. Stanley says:

    Thanks a lot! ;-)

  13. chr1s89 says:

    Thank you very much! This was really helpful :)

  14. Pingback: eclipse 아이콘을 windows 7 작업 표시줄에 고정시키기 | PointBre's story

  15. Jeremy says:

    Sweet!

  16. Daniel says:

    Thanks, works like a charm. I hated to search it all the way down to its directory and i’ve kind of lost the habit to place shortcuts on the desktop :)

  17. John T. says:

    I did this, but instead of getting an eclipse icon, I get a generic windows icon. Any suggestions on how to do this, but also get an eclipse icon?

    • Brian Reiter says:

      You can right-click on pinned icons and choose properties to edit the shortcut details. There is a change icon there which you can use to browse for eclipse.exe and select the icon.

      FWIW, when you pin something to the taskbar or start menu Explorer creates a shortcut in subdirectories of “%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned” named TaskBar and StartMenu respectively.

  18. Geert says:

    Thanks a lot for this. It worked for me on Win 7 x64.

  19. Pingback: Pinning Eclipse to the Windows 7 “start bar” « Twisted Pair Development

  20. Johnny says:

    Thanks a bunch. It’s weird that this doesn’t work out of the box.

  21. Sean says:

    Thanks, helped me too.

  22. Travis Brown says:

    Thanks! You rule dude.

  23. Thank you so much for this!!!

  24. Thanks so much for this thing :) It’s much better now :)

  25. If you’re using Indigo, refer to http://kdelchev.com/posts/articles/How_to_pin_Eclipse_Indigo_to_Windows_7_Taskbar.html

    —- quote —-

    Eclipse Indigo didn’t naturally pin to windows7 taskbar. When run there is no “Pin to taskbar” option. However there is two line solution to fix this.
    Posted on Wed, Aug 31st 2011, 15:40
    After downloading and extracting Eclipse to some directory, go to it.

    Mine is in C:\Program Files\eclipse, there locate and open eclipse.ini file with an simple editor and add theese lines

    -vm
    C:\Program Files\Java\jre6\bin

    The path C:\Program Files\Java\jre6\bin is where Java runtime environment is located. If yours is in other place, change the path relevant to your location.

    Note that you have to add the lines one under another! This WILL NOT WORK

    -vm C:\Program Files\Java\jre6\bin
    Save and close the editor and run Eclipse. Wait until fully loads and right click on the icon. You now have “Pin to taskbar” option, and there is no annoying second icon.

    This works on Windows7 64bit.

  26. zerosense says:

    I am getting second icon now.
    Is there anything I can do to get rid of it?

  27. zerosense says:

    Ignore this, I got it working.

    When I pin it I see the standard eclipse icon (the purple moon so to say).
    When I unpin it, the icon changes to a gear with the label “Java EE IDE”.
    How do I keep the purple moon? even when unpinned :) ?

  28. Octavian says:

    Thanks

  29. Richard says:

    Geez that was starting to irrirate me. Thanks for the heads up about having to wait until the workspace had fully loaded before pinning.

  30. Annie says:

    Thanks for summarizing what is in the bug and adding screenshots. This sol’n works for me with Windows 7, 64 bit and Eclipse Indigo.

  31. Marjaana says:

    Thanks for this! Works for Helios / Windows 7 64bit

  32. byc says:

    WOW! Thank you so much for this~~!

  33. Triguna says:

    This works… Thanks… :)

  34. Pingback: Eclipse an die Windows 7 Taskleiste “anheften” | crusy.net

  35. Tames McTigue says:

    This is excellent, thank you. Works with Juno as well.

  36. Anno says:

    Confirmed with Eclipse 4.2.0 Juno on Windows x64. Thanks

  37. kuba says:

    Thank you – that’s much better (and faster) solution than the one with changing system variable.

  38. Snoogy4u says:

    FYI for anyone else that runs into it. My eclipse.ini had “javaw.exe” at the end of the Java bin path, like this:
    -vm
    C:\Program Files\Java\jdk1.6.0_33\bin\javaw.exe
    And the “Pin this program to taskbar” option was not showing up.

    Not sure how it got that way, but when I changed the eclipse.ini to just have
    C:\Program Files\Java\jdk1.6.0_33\bin

    Then it works.
    Thanks for the tip!

  39. Tyler says:

    Thanks, works with all versions of Eclipse as far as I know.

  40. Totor says:

    Thanks !

  41. Gernott says:

    It dont work for me :-( Win7 64 bit, Eclipse Juno, Java7. I tried both Paths:
    C:\Program Files (x86)\Java\jre7\bin
    C:\Program Files\Java\jre7\bin

  42. Barry says:

    Hey Brian, this helps. Thanks!

  43. Kim says:

    Thanks. Works for Eclipse Indigo on Win7 64 bit.

  44. Melinda says:

    Brian, thank you so much for your article. Worked like a charm. Like others who have posted below it was driving me nuts. Thanks again!

  45. Russel says:

    It’s hard to find knowledgeable people about this topic, but you sound like you know what you’re talking
    about! Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 86 other followers

%d bloggers like this: