Re: setting java.library.path in Xcode?!?

Lachlan Deck <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi there,

On 06/04/2006, at 4:03 AM, Will Scheidegger wrote:

> I've been searching high and low to figure out how to set the value  
> of the java.library.path System property when running a Java app  
> from within Xcode (I'm on 2.2). I've tried providing an additional  
> argument (-Djava.library.path=/usr/local/lib), I've tried setting  
> the property in the code (but I guess at this time it's already too  
> late): nothing works.
>
> When searching the web I saw a few posts saying that the lib has to  
> be placed e.g. in /usr/lib/java but that's crap. One should be able  
> to tell the VM where to look! Others were talking about  
> manipulating Info.plist but I don't see that in my Xcode 2.2 project.

Assuming you're working on a WebObjects application you'll most  
certainly have Info.plist settings...
Try these menu options:
+ Project > Set Active Target > Application Server
+ Project > Edit Active Target 'Application Server'

Now select:
- Info.plist Entries > Simple View > Pure Java Specific

Then click the (+) under Additional Properties adding
name:java.library.path value:/usr/local/lib

Also see point #5 here: <http://developer.apple.com/java/faq/ 
development.html>

HTH...

with regards,
--

Lachlan Deck
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.