"java" coming on hover over the dock icon for my application

Hello All,


I have developed an app. I am calling the application from the command line only.

It's a java application, so i am calling my main class only.

I was working with Lion earlier and i was not able to get correct Dock Icon name while hovering. I googled and then i found a resolution.

So now while calling my app from command line i am adding -Xdock:name="Application" and everything works fine.

But now i upgraded to maverick and it stopped working.

I have googled whole day today but couldn't find the solution.

I checked the java doc for 1.7 and there they have specified -Xdock as supported.

I updated my os lion java to 1.7 also. There everything works fine.


Can you please look into the issue please.

Mac mini, OS X Mavericks (10.9)

Posted on Dec 3, 2013 5:17 AM

Reply
2 replies

Dec 3, 2013 5:20 AM in response to t123arun

Here's what i tried.

package com.sample;



import javax.swing.UIManager;

import javax.swing.UnsupportedLookAndFeelException;



public class Activator {



/**

* @param args

*/

public static void main(String[] args) {

System.setProperty("apple.laf.useScreenMenuBar", "true");

System.setProperty("com.apple.mrj.application.apple.menu.about.name",

"Application");

try {

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName ());

} catch (ClassNotFoundException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

} catch (InstantiationException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

} catch (IllegalAccessException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

} catch (UnsupportedLookAndFeelException e1) {

// TODO Auto-generated catch block

e1.printStackTrace();

}

try {

Thread.sleep(10000);

} catch (InterruptedException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

}





I am putting my code because everything work's fine with Lion and Mountain Lion.

It's issue with Mavericks.


java -Xdock:icon="Java.png" -Xdock:me="Check" -cp dock.jar com.sample.Activator

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"java" coming on hover over the dock icon for my application

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.