For reasons best known to myself I wanted to start a Java application in OS X. Now this Java application (the rather good JDarkRoom) comes as a Jar which works fine, just double click and it starts. But of course, this is where it gets a bit more complex. I want to start it in Quicksilver, the excellent launchbar for OS X, but quicksilver won’t see my Jar file. Now I’m sure I could do a workaround:
- You could use the Apple Developer Tools to make any Jar file a proper OS X app (I don’t really want them installed, they’ll be a temptation)
- You could write a plugin for Quicksilver to recognise Jar files and deal with them appropriately.
- You could go for a grubby hack.
#!/bin/shSaved it, ran sudo chmod +x in terminal on the file I’d just saved and then put that file somewhere quicksilver can see it. Now I can just invoke the script and it’s all happy. Or something like that.
java -jar /Applications/JDarkRoom.jar
p.s. this is what happens now that I work on a Mac again and don’t have my handy copy of Tomboy available to be my personal wiki for remembering this kind of thing.