Re: Compiling Java to basic JAR file
Re: Compiling Java to basic JAR file
- Subject: Re: Compiling Java to basic JAR file
- From: Greg Guerin <email@hidden>
- Date: Sat, 21 Oct 2006 17:54:45 -0700
Mitchell Hashimoto wrote:
>I am not using any OS X specfic packages in my java projects and I'd
>like to be able to compile my application for both windows and mac.
>How can I tell XCode to compile into a basic Jar instead of a .app?
The "Java Package" target type produces a plain JAR file. Unfortunately,
it's not in the list of New Project templates when you create a new
project, so use "Java Tool" in that case.
The simplest way to transmute an existing Java-app project is to add a new
Java Package target, add all the source files to it, then remove the
Java-app target. You can test the correctness of the transmutation (before
removing the Java-app target) by choosing the Java Package target as the
current target, and building only it.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden