• 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: Java Tool with NSTask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Tool with NSTask?


  • Subject: Re: Java Tool with NSTask?
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 25 Jan 2004 04:15:29 -0500

On Jan 25, 2004, at 3:30 AM, Fabio Genoese wrote:

I would like to access a Java command line tool from Cocoa (Objective-C app). As you can imagine, I need its output. I know there's NSTask for UNIX command line tools and of course there's NSPureApplication in the Java AppKit for java tools (ONLY for the Java AppKit) but what about using java tools from Objective-C? Any ideas?

Couldn't you simply use NSTask to run /usr/bin/java just like you would any other UNIX tool? All you'd need to do is pass the path to your Java app as an argument, as well as any other relevant arguments you'd use to run the app from a shell.

sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Java Tool with NSTask?
      • From: Mijobe <email@hidden>
    • Re: Java Tool with NSTask?
      • From: Fabio Genoese <email@hidden>
References: 
 >Java Tool with NSTask? (From: Fabio Genoese <email@hidden>)

  • Prev by Date: Re: programmatically instantiating and displaying NSWindow
  • Next by Date: Re: [APP IDEA] Desktop Background Scripting
  • Previous by thread: Java Tool with NSTask?
  • Next by thread: Re: Java Tool with NSTask?
  • Index(es):
    • Date
    • Thread