pin a java application to win7 taskbar

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
I am using launch4j as .exe wrapper for my .jar files. I want to be able to pin the program to the taskbar, as this is going to be one main functionality of my app.

As you might know, java is run in javaw.exe, therefore javaw.exe gets pinned instead of the app. I tried using JNA to pass an appID to windows but it didn't work.

http://stackoverflow.com/questions/1907735/using-jna-to-get-set-application-identifier

I tried to implement that but it didn't make any change
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Were you able to change the application ID?
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Were you able to change the application ID?

Nope. But I am learning C# now as I think it is a better choice to use with the win32 API and WMI. I think that should be able to be pinnable to the taskbar
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
If SetCurrentProcessExplicitAppUserModelID failed, the next thing I was going to suggest was to check that shell32.dll registered properly, but it sounds like you've got a handle on it.
 
Top