Gentoo Archives: gentoo-java

From: "Petteri Räty" <betelgeuse@g.o>
To: Ted Kosan <tkosan@×××××.com>
Cc: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Adding native library path to system VM
Date: Mon, 14 Nov 2005 14:02:35
In Reply to: [gentoo-java] Adding native library path to system VM by Ted Kosan
Ted Kosan wrote:
> Hello, > > I recently emerged the dev-java/rxtx package and it installs native libraries > into /opt/rxtx-2/lib/ > > My question is, how is this path added to the system's VM so that the native > libraries in it can be found? > > I used java-config to add the package's jar to the system's classpath ( > CLASSPATH=/usr/share/rxtx-2/lib/RXTXcomm.jar ) but I did not see any > java-config options that could be used to add native libraries to the system > VM. > > I am currently using sun-jdk- > > Thanks in advance :-) > > Ted Kosan > Embedded Java community co-leader > tkosan@××××××××.net
java-config --library rxtx2 aria betelgeuse # java-config -i rxtx-2 /opt/rxtx-2/lib It is the job of the applications using rxtx to call this in their startup scripts. You should not set a system wide classpath, that is deprecated and not supported by the java team. Regards, Petteri Räty


File name MIME type
signature.asc application/pgp-signature