views:

40

answers:

1

Hi, I have a JAR file on my mac called Test.jar, and the file works perfectly fine when I click on it. All it does is it just opens a small window, and displays "Test", so it's a simple application (I am new to Java programming).

My question is how do I change the icon of the jar file to a different icon of my choice? I have yet to figure this out on my own, and I don't know what to do. Like I have already stated, I am using a mac, so MS Windows methods are probably different from what I have to do.

Any help is greatly appreciated :).

+1  A: 

As the linked answer indicates, this is platform specific. OSX does allow you to easily package the java application as a native OSX app, though. See http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac3/

Dilum Ranatunga
Wow, I just discovered this app on my mac called the Jar Bundler, which packages JAR files into a native mac app. Thanks for you help :).
Wyatt