Note that there are some explanatory texts on larger screens.

plurals
  1. POPinning a Java executable (with launch4j) to the Windows 7 taskbar
    text
    copied!<p>After spending half a day searching and trying, I'm finally giving up.</p> <p>I have a java application of which I create a runnable jar (to include any other libs and just have a single jar file). With launch4j and the runnable jar I'm making an executable "MyApp.exe".</p> <p>The executable ist working fine, but I want to pin it to my windows 7 taskbar. For now, I just have the taskbar entry "Close window".</p> <p>After reading and implementing the following solutions with JNA</p> <ul> <li><a href="https://stackoverflow.com/questions/1834599/pinning-a-java-application-to-the-windows-7-taskbar">Pinning a Java application to the Windows 7 taskbar</a></li> <li><a href="https://stackoverflow.com/questions/1907735/using-jna-to-get-set-application-identifier">Using JNA to get/set application identifier</a></li> </ul> <p>my Application displays it's "Application User Model ID" correctly in the gui (just for testing purpose).</p> <p>BUT: my program is shown as "javaw.exe" in the Task Manager and I still can't pin it to the taskbar, even though I set the launch4j option "custom process name and XP style manifest".</p> <p>Background information: I'm working with a windows 7 admin account and I don't want the app the require admin rights.</p> <p>Anyways, if I start the app "as administrator" from the context menu and confirm the UAC message, I can now pin to the taskbar. BUT: even though I set the "Application User Model ID" properly, windows still wants to pin "javaw.exe", even though my program is now shown as "MyApp.exe" in the TaskManager.</p> <p>I'm totaly confused. But I'm obviously not the only one, having these issues. => See the last comments to Gregory Pakosz answer in <a href="https://stackoverflow.com/questions/1907735/using-jna-to-get-set-application-identifier#comment10163061_1928830">Using JNA to get/set application identifier</a></p> <p>Final questions:</p> <ol> <li>Gregory Pakosz way with JNA to set the "Application User Model ID" ( <a href="https://stackoverflow.com/a/1928830/1128689">https://stackoverflow.com/a/1928830/1128689</a> ) is working for me. But still, windows recognizes my app as an instance of "javaw.exe". What else do I have to do?</li> <li>Did maybe some windows or java update break something here?</li> <li>Do I really have to run my app with elevated user rights? I really don't want to...</li> <li>Are there some more options in launch4j which I have to set?</li> <li>Do I have to use a manifest file in launch4j?</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload