How can I pin Eclipse Luna to the Windows-7 taskbar?

15

4

I used to be able to pin Eclipse to my taskbar by adding these lines to the eclipse.ini file:

-vm
C:/Program Files/Java/[my java version]/bin

But it doesn't seem to work with the new Eclipse Luna release. Now, without those lines, I can't pin the application and, with them, the context menu doesn't even show up when I right-click the icon on the taskbar.

Is there any way to fix this?

Martin Larente

Posted 2014-06-27T01:17:27.207

Reputation: 388

I have the same issue. I searched bugs.eclipse.org but couldn't find any reference to the broken right-click menu. Pinning has been partially broken for several versions now (see bugs 314805 and 432353)

– Didier L – 2014-07-01T07:51:38.597

Personally I just pin it to the start menu so I only ever have one icon in the taskbar. – Enigma – 2014-07-09T14:00:51.730

How about just dragging the eclipse.exe from Explorer to the taskbar? – František Žiačik – 2015-09-09T12:51:58.700

Answers

11

I have used the -vm setting in eclipse.ini in past versions, but it did not solve the issue here. Pinning to the Task Bar directly seemed to leave me with a duplicate icon once Luna finished initializing. FWIW, I seem to have hacked into a correction. First I right-clicked eclipse.exe and Pinned to the Start Menu. Then after starting Luna from Start, I right-clicked the icon which appeared on the Task Bar, and Pinnned to the TaskBar. Then I unpinned from the Start Menu (since I prefer direct access to the icon rather than Start > Eclipse). And once done, Luna now starts from the Task Bar and the icon is updated, but not duplicated, when fully loaded.

JayBofMA

Posted 2014-06-27T01:17:27.207

Reputation: 134

3This worked for me after I put back the -vm in the ini file. – Martin Larente – 2014-07-10T16:38:40.590

this did not work for me. Adding the java bin folder to the front of the path variable did. – Erick Robertson – 2015-03-04T15:58:04.300

6

Had this issue with Eclipse Mars 64 bits on Windows 10 Pro x64 Insider Preview Build 10130. The only way I managed to fix that is by executing Eclipse as it was a Windows Vista app:

  1. Remove any pinned icon to fom the taskbar

  2. Right click on the Eclipse executable -> Properties -> Compatibility tab -> Compatibility Mode

  3. Check Run this program in compatibility mode for

  4. Select Windows Vista (any of them).

  5. Execute Eclipse by clicking on the executable and pin it when it's fully loaded.

I didn't need to add the -vm flag in neither the shortcut (C:\Users\[Your User]\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar) or the eclipse.ini file.

Jeremy Pare

Posted 2014-06-27T01:17:27.207

Reputation: 160

although this had worked to get rid of the duplicate icon, I found that my git projects on JDK8 will get an internal error. The stack trace following this comment shows that it is triggered by jgit – Archimedes Trajano – 2015-06-30T15:12:04.000

java.lang.InternalError: Should not get here at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink0(Native Method) at sun.nio.fs.WindowsNativeDispatcher.CreateSymbolicLink(WindowsNativeDispatcher.java:890) at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:578) at java.nio.file.Files.createSymbolicLink(Files.java:1043) at org.eclipse.jgit.util.FileUtil.createSymLink(FileUtil.java:111) – Archimedes Trajano – 2015-06-30T15:13:01.507

Sorry to hear that! I cannot tell you if I have the same behavior on my side since I'm not using Eclipse for Java, although you should try adding the -vm flag in neither the shortcut (C:\Users[Your User]\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar) or the eclipse.ini file. You can find the exact procedure in many answer in this thread. Just be sure to add the line at the very beginning of the eclipse.ini file. – Jeremy Pare – 2015-07-02T00:48:29.703

Bug @ArchimedesTrajano described in not specific to java, but rather to egit. I'm having the same problem on win10 with php project, shared with git. – Cthulhu – 2015-09-17T07:24:10.117

1Neither adding the -vm parameter nor the trick with first pinning it to the Start menu worked for me, though changing the compatibility setting fixed the problem for me on Windows 10 + eclipse 4.6 (neon). – Sebastian Zartner – 2016-05-28T10:45:55.253

2

The steps:

  1. Go to your eclipse installation directory, right click eclipse.exe and click "Create shortcut"
  2. Open Eclipse by double-clicking the newly created shortcut.
  3. Go past the workspace selection and the splash screen. Once Eclipse is fully loaded, right-click the Eclipse icon in the taskbar, and click "Pin this program to taskbar".
  4. Close Eclipse.
  5. Delete the shortcut.

The results:

  • No duplicate Eclipse taskbar entries, which is a known issue in the latest Eclipse releases
  • Context menu of Eclipse's taskbar entry works (I noticed this is a new issue in Eclipe Luna)

You have to make sure that Eclipse will run in a good JVM, too. You can therefore modify your PATH system variable to include the path to the JVM of your choice, or modify the eclipse.ini file in the same directory as eclipse.exe, and add the following 2 lines:

-vm
C:/Program Files/Java/[your Java VM]/bin

If you choose the PATH solution, you append to your PATH variable this piece of text:

;C:/Program Files/Java/[your Java VM]/bin

Ensure yourself that Eclipse is running in the JVM you chose, by opening Windows Task Manager and inspecting the command line used to run Eclipse. On my system, I noticed that some javaw.exe located in C:\Windows\System32\ was used, which was not what I wanted.

Timmos

Posted 2014-06-27T01:17:27.207

Reputation: 121

4.4.2 still provides no context menu... – patstuart – 2015-03-11T19:07:11.313

When combined with http://stackoverflow.com/q/11524162/, I was able to get this to work.

– patstuart – 2015-03-16T18:12:04.397

1

This worked for me:

1 - Copy / paste the executable "eclipse.exe" on the desktop 2 - Pinning to Taskbar 3 - Delete the desktop executable 4 - Right-click on the eclipse icon in the taskbar > right click on the eclipse icon in the list > Properties 5 - Change the path to the executable (target : ..../eclipse.exe) and change the directory (Start in:)

Strange but it works for me !!!

hyphenX Freeman

Posted 2014-06-27T01:17:27.207

Reputation: 11

Does not work, you will end up with 2 icons in the taskbar. – Timmos – 2014-10-15T12:07:16.567

0

Had the exact same problem today so the work around I am currently using is to locate the eclipse executable and right click it and say "Pin to taskbar." Clunky and non-uniform behavior to the most other windows applications, but maybe someone will have a better fix in the future.

bschultek

Posted 2014-06-27T01:17:27.207

Reputation: 1

1This doesn't work, when Eclipse is fully started, it uses a new icon beside the pinned icon. – Martin Larente – 2014-07-09T13:51:38.923

Yeah I noticed that way later in the day. While the splash screen is up it looked perfect and I must have forgotten to check later. I'll check back in if I can get something working with it. – bschultek – 2014-07-10T12:45:42.030

0

I found out a way to make it work.

First, locate Eclipse.exe and pin it to your taskbar. Next, start eclipse using that pinned icon. Now you will see that once the splash screen is gone, eclipse is displayed in the taskbar as a separate icon from the one that you used to launch it.

Not to worry. Unpin the old icon, right click on the icon where eclipse is running and pin it. Voila! The icon will get pinned and eclipse will continue running. Now, close and start eclipse as needed and you will see that it works perfectly.

PS: do not forget to add -vm and specify the path of your JVM in eclipse.ini

GreatDharmatma

Posted 2014-06-27T01:17:27.207

Reputation: 101

4This does not work with Eclipse Luna: the context menu is unavailable in the second icon that appears. – Timmos – 2014-10-15T12:08:30.400

0

I just clicked and dragged the Eclipse icon to the taskbar. Pinned.

Jason

Posted 2014-06-27T01:17:27.207

Reputation: 1 743

0

Adding this answer, as this superuser page shows up number 1 on Google for "eclipse luna cannot pin to taskbar"

What worked for me running Eclipse Luna 1a (4.4.1) on Windows 8:

Simply adding the bin folder to the path is not enough, I needed to specify the location to the bin/server/jvm.dll with the -vm parameter:

-vm C:/Program Files/Java/[myJavaVersion]/bin/server/jvm.dll

Also, it only worked if this line was added before the rows containing

 --launcher.appendVmargs [...]

There has been an eclipse bug report filed for this since 2010. The comments include helpful tips: https://bugs.eclipse.org/bugs/show_bug.cgi?id=314805

Flo

Posted 2014-06-27T01:17:27.207

Reputation: 1

0

Previous answers did not work for me at all (Windows 7 64-bit)...

Adding the -vm entry to eclipse.ini caused Eclipse to fail to start: it just showed a big error dialog (and yes the entry did point to a valid Java VM).

Workarounds involving pinning to the start menu, or creating a shortcut on the desktop had no effect.

What did work was adding the Java bin directory (C:\Program Files\Java\jre7\bin) as the first item in my PATH (the PATH of System variables not the PATH in User variables). Having done this, I started Eclipse, waited for it to get past the splash screen, and right clicked on the taskbar entry. Now the "Pin this program to taskbar" does appear in the menu, and as an added bonus the "New Task" and "Activate Task" entries work too.

TomH

Posted 2014-06-27T01:17:27.207

Reputation: 101