Posts Tagged osx
If you want to distribute a Java application on OS X, you have to create an application bundle. There are a very nice project (JarBundler) which provides a feature-rich Ant-task which will create an a OS X application bundle from a list of jar files.
As described on the project homepage of the JarBundler, the release of Java7 has changed a lot. E.g. Java7 is installed in a different place as the previous JRE provided by Apple and the structure of the ‘Info.plist’ has changed. The Jarbundler will not work with Java7! Unfortunately there is no plans to do this.
There is another Ant-Task AppBundler, which does the work but not as feature-rich as the JarBundler.
I was confronted with the task to create an OSX-bundle for an existing Java application and was looking for an extensive example but didn’t found any one. There are several problems with the AppBundler, e.g. the working directory and the home directory are identical. (Many existing applications expected their resources inside their working directory.)
My project OSX-Java-Launcher-Demo shows how to handle the AppBundler. Thereby following priorities were set:
- the working directory of the application and the resource directory of the OSX-bundle are identical
- 3rd-party-libraries are respected
A view week ago, I had a nasty problem. I updated my xulrunner installation to 7.0. A software project based on xulrunner wouldn’t run with this version. Ok, back to the old one. But how? The installer of the new hasn’t any uninstall option and the installer of the old one was canceling, because a newer version exists.
Googleing around I’ve found a few hints but none of them works correctly or wasn’t the half line.
To delete the whole xulrunner manually you have to delete the following items:
/private/var/db/receipts/org.mozilla.xulrunner.bom(seems relevant to 10.6.7)
/private/var/db/receipts/org.mozilla.xulrunner.plist(seems relevant to 10.6.7)