简体   繁体   中英

How do I add an icon to launchpad in os x mountain lion that will launch a java .jar?

Let's say I want an icon in Launchpad that when clicked on executes:

java -jar /Users/me/Program.jar argument1 argument2

I'm running OS X Mountain Lion. This is a little Java program I wrote for my own personal use, nothing I'm trying to distribute. Basically, I'm asking: How do I make the equivalent of a Windows shortcut?

How about writing a shell script to execute the command and create a desktop shortcut like this , or this ?

ps I'm not a mac user btw. lol

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM