![]() (While I will probably never write B2C for Linux users, I would be interested if someone with experience with it shared what they did. I don't have any experience with deploying B2C Java apps to Linux users so I don't know what I'd do for wrapping it there. (Wrapping isn't quite the last thing you'll need to do to make a Java app cross-platform - ask me some time about the joys of finding a good directory to store settings in - but it is a low-effort absurdly-high-reward step to take.) This cannot be built from source but must be obtained from a Mac OS X system. The JarBundler site has the following to say: 'When the JarBundler ANT task is used under Windows or Linux, a copy of the JavaApplicationStub must be supplied by the developer. I really don't understand the internals of Java Mac applications, but I think you can also copy/paste any JavaApplicationStub you encounter on the Internet, if you're also developing on a non-Mac platform. stubfile - This is the wrapper executable which launches your application. Summary: Packaging a Java application into an executable Mac bundle is not difficult, but has changed over time JavaApplicationStub is replaced by JavaAppLauncher manually building the package content files and hand editing the ist is straightforward, but the organization and properties have changed. I got mine by outsourcing wrapping of the very first Mac version of BCC to somebody on RentACoder, and since they I've just copy/pasted every time I've done a version upgrade. Macs can apparently produce it with software that comes onboard. You need a file called JavaApplicationStub to get JarBundler to work. JarBundler: an Ant task which packs jars into Mac applications Launch4j: packs jars into self-contained. I routinely build BCC for Macs on Windows Vista. Java build tools are wonderfully cross platform so you can use the following pair regardless of your development environment, as far as I know. You can add an Icon resource, set various Mac OS X native look-and-feel bells and whistles, and maintain your application bundles as part of your normal build and release cycle. ![]() Knowing how to make executable jars is valuable, just make sure it is the step in your ant file right before you execute your native wrapping. JarBundler is a feature-rich Ant task which will create a Mac OS X application bundle from a list of Jar files and a main class name. ![]() ![]() As a B2C Java developer, I have to say it: don't distribute jars to end users. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |