+ Reply to Thread
Results 1 to 4 of 4

Thread: pin a java application to win7 taskbar

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    pin a java application to win7 taskbar

    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/1...ion-identifier

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

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: pin a java application to win7 taskbar

    Were you able to change the application ID?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: pin a java application to win7 taskbar

    Quote Originally Posted by misson View Post
    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

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: pin a java application to win7 taskbar

    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.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 02-10-2010, 05:38 PM
  2. dualbooting win7 and XP
    By galaxyAbstractor in forum Computers & Technology
    Replies: 0
    Last Post: 02-12-2009, 12:11 PM
  3. Windows Taskbar Themes
    By richm8026 in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-03-2008, 10:58 AM
  4. Your name on taskbar
    By Nikolasr in forum Tutorials
    Replies: 5
    Last Post: 03-31-2008, 05:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers