0

Possible Duplicate:
Some taskbar pinned icons are duplicated when an instance of the application is running

Clicking on the Eclipse (Indigo) icon on my task bar makes a new icon instead of using the already pinned one. After clicking the already pinned icon on the task bar, it makes a new (and focused) one instead of using the existing. How can I make it use the initial pinned icon?

skypower
  • 1
  • 1
  • 2

2 Answers2

1

As jcrawfordor points out, it's because Java programs are launched by "Java For Windows". (javaw.exe)

I dug up a workaround -- adapted from here:

(I don't have Eclipse.exe currently installed, so I'm guessing Eclipse's file name in the examples, and haven't tested the this personally. :) )

  1. Browse to your Java directory in Program Files.
  2. Make a Copy of 'javaw.exe' file and rename it to the program's name (i.e.: Eclipse.exe).
  3. Create a new shortcut to the new file, plus a parameter (which will be your program's JAR file location) "C:\Program Files\Java\jre6\bin\Eclipse.exe" -Xmx512m -jar "[Eclipse's Path]\Eclipse.jar"
  4. Right-Click the icon, and from its properties choose "Change Icon" and choose your Eclipse's icon (to use instead of Java's icon).
  5. Right-Click your shortcut and choose Pin to Taskbar.

Now you should have your program's icon in the taskbar, and if you opened it, it won't duplicate.

0

My understanding is that this happens when the program linked to by the icon launches a different process (the new process will get a new icon). You would need to instead create a pinned icon that launches the Eclipse executable itself with whatever settings necessary, rather than starting a "launcher program" that then starts Eclipse itself.

jcrawfordor
  • 16,449