Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using XCode to build with Ant and create a .app




Fabrizio,

On 2006 May 29 , at 22.22, Fabrizio Giudici wrote:

Does jarbundler make use of native code? I mean, is it able to run on a non-mac host?

As I mentioned, it should work on a non-Mac platform if you have a copy of the Java launcher application, which you can find at /System/ Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/ JavaApplicationStub on a recent OS X box.


...according to the docs. I haven't had the need to try that myself, though.

BTW, it would be neat to have my server to generate .dmg too, but I'm not aware of any hdiutil compatible tool that runs on Linux. Any hint?

I'm not aware of any.

You could try just zipping up the generated .app directory, and using the resulting .zip file as the distribution. I think that the JavaApplicationStub file is a data-only file (it must be, if the technique above does work), so there shouldn't be any resource-fork issues (presuming that there are no resource-fork files in the resources of your Java application, which is presumably the case if you're anticipating it being cross-platform), and the unzipped .app directory should just work!

It's not as swish as a .dmg file, but it won't look too weird.

All the best,

Norman


--
------------------------------------------------------------------------ ----
Norman Gray / http://nxg.me.uk
eurovotech.org / University of Leicester, UK




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Using XCode to build with Ant and create a .app (From: Chris Adamson <email@hidden>)
 >Re: Using XCode to build with Ant and create a .app (From: Norman Gray <email@hidden>)
 >Re: Using XCode to build with Ant and create a .app (From: Fabrizio Giudici <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.