Re: [Sablevm-user] jni: LD_LIBRARY_PATH ignored
Brought to you by:
egagnon
From: David <db...@cs...> - 2003-03-21 14:26:00
|
On Fri, Mar 21, 2003 at 09:55:29AM +0100, Grzegorz B. Prokopski wrote: > W li?cie z pi?, 21-03-2003, godz. 06:31, David B=E9langer pisze:=20 > > Mark, > >=20 > > You can specify it with the java.library.path property > > as follows: > >=20 > > sablevm -p java.library.path=3DDIR ... > >=20 > > > How can I fix this? > >=20 >=20 > I think that it could be added to /usr/lib/sablevm/bin/java wrapper > quite easily. I'll add this to the next version of package > *IF* > LD_LIBRARY_PATH is the standard way of telling where to look for > jni libs. >=20 > David or anyone - can you tell me how should I use the java.library.pat= h > property when I have more than one directory in LD_LIBRARY_PATH? > Shall I use "-p" multiple times? or only once but separate the dirs > with some separator? (which one? ":" ?) >=20 Grzegorz, The right way to do it is to use the ':'. (Actually, it uses the propert= y path.separator which defaults to ':' and should be defined as ':' on *nix system anyway). Properties are simple (key,value) pairs. There cannot be several pairs stored with the same key. I am not sure what SableVM does if one is specified several times. It might just use the last value? The actual code that uses it is in: sablepath-classes/src/java/lang/Runtime.java especially Runtime() and loadLibrary(). David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |