I have an application that gets started via a shortcut. This application than starts a Java GUI application with CreateProcess().
When the Java application gets pinned to the taskbar the javaw.exe gets pinned to the taskbar instead of the "expected" shortcut. Only the native executable which launches Java can be modified - the shortcut has to stay.
What has to be done so that the shortcut gets pinned?
-
Have you gotten any further in resolving this issue? I am facing precisely the same problem.Paul Lammertsma– Paul Lammertsma2009年12月02日 13:02:05 +00:00Commented Dec 2, 2009 at 13:02
-
Unfortunately: No - I wish I had If I find a solution I will post it here.user153677– user1536772009年12月09日 12:14:55 +00:00Commented Dec 9, 2009 at 12:14
3 Answers 3
Use something like winrun4j or create a .bat instead of using a shortcut.
5 Comments
You could clean your IconCache like this:
First go to Task Manager and kill explorer.exe
Windows Task Management -> Processes -> End "explorer.exe"
Then, in the Task Management
Windows Task Management -> File -> New -> CMD.EXE
In the opened console type:
CD /d %userprofile%\AppData\Local DEL IconCache.db /a EXIT
Then reopen the explorer.exe
Windows Task Management -> File -> New -> explorer.exe
Comments
You can pin a shortcut directly, not necessarily a window that is open on taskbar: right click on the shortcut, Pin to taskbar. The java window that will open won't use the button you pinned on the taskbar, since it's a different application, but that was not the issue, I understand.