public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Adding native library path to system VM
@ 2005-11-13 22:36 Ted Kosan
  2005-11-14 14:01 ` Petteri Räty
  0 siblings, 1 reply; 2+ messages in thread
From: Ted Kosan @ 2005-11-13 22:36 UTC (permalink / raw
  To: gentoo-java

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-1.5.0.05.

Thanks in advance :-)

Ted Kosan
java.net Embedded Java community co-leader
tkosan@dev.java.net
-- 
gentoo-java@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-java] Adding native library path to system VM
  2005-11-13 22:36 [gentoo-java] Adding native library path to system VM Ted Kosan
@ 2005-11-14 14:01 ` Petteri Räty
  0 siblings, 0 replies; 2+ messages in thread
From: Petteri Räty @ 2005-11-14 14:01 UTC (permalink / raw
  To: Ted Kosan; +Cc: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

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-1.5.0.05.
> 
> Thanks in advance :-)
> 
> Ted Kosan
> java.net Embedded Java community co-leader
> tkosan@dev.java.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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-14 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13 22:36 [gentoo-java] Adding native library path to system VM Ted Kosan
2005-11-14 14:01 ` Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox