• 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: XCode, Java and Main
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode, Java and Main


  • Subject: Re: XCode, Java and Main
  • From: Jim Rankin <email@hidden>
  • Date: Thu, 20 Nov 2003 17:35:54 -0500

On Nov 20, 2003, at 3:08 PM, Richard Good wrote:

> I'm new to XCode but not Java.  I've been trying to port an existing
> project to XCode and can't figure out how to set the location of the
> main class.  I want to have multiple targets that start with different
> mains.  I've tried going through the documentation, but without much
> luck.
>

Here's the reply I got from David Ewing (apple.com email address) to a
similar request.  Might work for you, too.

On Nov 9, 2003, at 4:43 PM, David Ewing wrote:

> On Nov 6, 2003, at 3:53 PM, Jim Rankin wrote:
>
>> I added a "Java tool" target to an existing project (formerly a PB
>> project).  It builds a .jar file, but there seems no way to actually
>> launch the command line app from within XCode (I can run it fine if I
>> build and run from the command line).
>>
>> Do I have the run kind of target?  If not, what do I have to twiddle
>> to get the "Run" button to be clickable?
>
> Create a new custom executable, set the path to be /usr/bin/java, add
> add an argument that says "-jar yourfile.jar" (with the "yourfile"
> part replaced with the correct name). You'll probably also want to set
> it to use the Java debugger.
>
> Dave

Best,
  -jimbo

Excelsior! XML Marshaller for Cocoa
http://www.homepage.mac.com/jimbokun/Excelsior.html
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >XCode, Java and Main (From: Richard Good <email@hidden>)

  • Prev by Date: maformed library error with NEXT_ROOT set?
  • Next by Date: Re: maformed library error with NEXT_ROOT set?
  • Previous by thread: MIssing file or directory error on build
  • Next by thread: maformed library error with NEXT_ROOT set?
  • Index(es):
    • Date
    • Thread