pin a java application to win7 taskbar

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by galaxyAbstractor, Jun 20, 2010.

  1. galaxyAbstractor

    galaxyAbstractor Community Advocate Community Support

    Messages:
    5,508
    Likes Received:
    35
    Trophy 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
     
  2. misson

    misson Community Paragon Community Support

    Messages:
    2,572
    Likes Received:
    72
    Trophy Points:
    48
    Were you able to change the application ID?
     
  3. galaxyAbstractor

    galaxyAbstractor Community Advocate Community Support

    Messages:
    5,508
    Likes Received:
    35
    Trophy Points:
    48
    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
     
  4. misson

    misson Community Paragon Community Support

    Messages:
    2,572
    Likes Received:
    72
    Trophy 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.
     

Share This Page