The Shell32.dll SetCurrentProcessExplicitAppUserModelID function is used to associate the application with the task bar item in Windows 7. As I understand it, when "pinning" the application to the toolbar, it would use the launch4j application name instead of java.exe. See http://stackoverflow.com/questions/1834599/pinning-a-java-application-to-the-windows-7-taskbar. Making the SetCurrentProcessExplicitAppUserModelID call from the launcher executable would be easier than a JNI or JNA call from Java.
Log in to post a comment.