Re: Compiling Java to basic JAR file
Re: Compiling Java to basic JAR file
- Subject: Re: Compiling Java to basic JAR file
- From: Jerry <email@hidden>
- Date: Sun, 22 Oct 2006 16:37:28 +0100
On 22 Oct 2006, at 01:54, Greg Guerin wrote:
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.
Or you can use the "Ant-based Application Jar" project template,
which has the advantage that you can build on Windows as well, if
that's important.
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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