0

I have a Java application developed for Mac. I am bundling it into a cocoa application. To start the application i am using Shell Script inside Apple script and making a call to my jar.

Java -jar -XstartOnFirstThread -Dapple.awt.UIElement=true -Dfile.encoding=UTF8 Myapp.jar

Doing this launches the app with an executable icon. I want to replace this with my custom icon.

Sandeep T D S
  • 481
  • 3
  • 15
  • This appears to solve the problem: http://stackoverflow.com/questions/6006173/how-do-you-change-the-dock-icon-of-a-java-program/15663741, or this: http://stackoverflow.com/questions/3054704/how-to-change-jar-icon-on-mac – Iluvatar Dec 05 '16 at 08:54

1 Answers1

0
Java -jar -XstartOnFirstThread -Dapple.awt.UIElement=true -Dfile.encoding=UTF8 Myapp.jar -Xdock:icon="Path To Icon"

This changes the icon that appears in the Dock.

Sandeep T D S
  • 481
  • 3
  • 15