• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compiling Java to basic JAR file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Compiling Java to basic JAR file
      • From: Jerry <email@hidden>
  • Prev by Date: Compiling Java to basic JAR file
  • Next by Date: Re: Breakpoints not firing?
  • Previous by thread: Re: Compiling Java to basic JAR file
  • Next by thread: Re: Compiling Java to basic JAR file
  • Index(es):
    • Date
    • Thread