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.

March 27th, 2011

Adding xbee library to local maven repo

Posted by tomasz in Home Improvements, HVAC Zoning

1. Download and unzip api:

wget http://xbee-api.googlecode.com/files/xbee-api-0.5.5.zip
unzip xbee-api-0.5.5.zip

2. Install

mvn install:install-file \
-DgroupId=com.rapplogic \
-DartifactId=xbee-api \
-Dversion=0.5.5 \
-Dfile=xbee-api-0.5.5.jar \
-Dpackaging=jar \
-DgeneratePom=true

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