Tomasz Korwel
programmer, administrator, engineer – my everyday fights with reality

March 29th, 2011

ubuntu’s librxtx with java-6-sun

Posted by tomasz in HVAC Zoning, tips & tricks vault

If you want to use SUN’s java version with rxtx on any debian derivative system you’d be surprised to discover that jre can’t find rxtx libraries if you installed them using librxtx-java package. It’s because SUN does not adhere to debian naming and placing policies and looks for libraries in wrong place. Quick fix:

cd /usr/lib/jvm/java-6-sun/jre/lib/
cp /usr/share/java/RXTXcomm.jar ./
cd i386
cp /usr/lib/jni/lib* ./

That will make those libs available to SUN’s java and everything should work from now on.

One Response to ' ubuntu’s librxtx with java-6-sun '

Subscribe to comments with RSS or TrackBack to ' ubuntu’s librxtx with java-6-sun '.

  1. vt said,
    on March 29th, 2011 at 1:35 pm

    Or, you can create symlinks…

Leave a reply

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

ZEND Certified Engineer
Listed on BlogShares

Tomasz Korwel is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com