Re: Java Tool with NSTask?
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.