I have an application packaged as a jar file on my mac. I wish to launch this app from the dock as if it is a .app file. Is there a way to do this?
jar is executable. Because Mac OS X ships with the Jar Launcher application, the end user needs only double click on the jar file and the application will launch. To make the jar file executable, the manifest must include the name of the Main class file.
Sure. JAR files can be launched just like .app
s can. Just drag the JAR to the section of your Dock closest to the trash can (it won't work in the main section of your Dock, as that area is reserved for .app
s), on the other side of the little separator. Keep in mind that Lion (OS X 10.7) doesn't come with Java pre-loaded, so you may have to download the Java Runtime Environment (JRE) to run JARs.
(Also, this question is much better asked over on Ask Different, the Apple Stack Exchange site.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With