Re: [Sablevm-user] jni: LD_LIBRARY_PATH ignored
Brought to you by:
egagnon
|
From: David <db...@cs...> - 2003-03-21 05:31:40
|
Mark,
You can specify it with the java.library.path property
as follows:
sablevm -p java.library.path=3DDIR ...
I noticed this also. The reason is that Classpath code uses that
property instead of the LD_LIBRARY_PATH env var. I am not sure if this
is a Classpath/SableVM bug since libraries are located in a
"system-dependent" way. It might be more of an annoyance than a bug but
I will leave this for discussion on the developer's mailing list.
David
On Thu, Mar 20, 2003 at 02:42:26PM +0000, Mark Howard wrote:
> Hi,
> I'm trying to use sablevm 1.0.8-3 (Debian) on a project which uses
> JNI. The location of the libraries is being set using the
> LD_LIBRARY_PATH environment variable. sablevm doesn't seem to be pickin=
g
> up on this. The follow exception is produced:
> java.lang.UnsatisfiedLinkError: Could not find library GTKJava.
> at java.lang.Runtime.loadLibrary(Runtime.java:682)
> at java.lang.System.loadLibrary(System.java:620)
> at org.gnu.gtk.Gtk.static{}(Gtk.java:96)
> at java.lang.Class.step8(Class.java)
> at java.lang.Class.initialize(Class.java:204)
> at com.tildemh.debbuggtk.BugWatcher.main(BugWatcher.java:454)
> at java.lang.VirtualMachine.invokeMain(VirtualMachine.java)
> at java.lang.VirtualMachine.main(VirtualMachine.java:88)
>=20
> How can I fix this?
>=20
> Please CC me - I'm not on this list.
> --=20
> .''`. Mark Howard
> : :' :
> `. `' http://www.tildemh.com=20
> `- mh...@de... | mh...@ti... | mh...@ca...=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC. =20
> Does your code think in ink? You could win a Tablet PC.=20
> Get a free Tablet PC hat just for playing. What are you waiting for?=20
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Sablevm-user mailing list
> Sab...@li...
> https://lists.sourceforge.net/lists/listinfo/sablevm-user
--=20
---
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
|