PDA

View Full Version : RXTX Library install on Ubuntu 10.04



Z.K.
May 1st, 2011, 11:32 PM
I am having trouble using the serial port in Java, nothing happens. I installed RXTX from cloudhopper and then I found this SerialPort library that seemed promising, but no luck there either and no example code to use it. I am fairly new to Java. So, out of desperation, I have decided to try and reinstall rxtx.

When I try to run the run-install.sh script, I get a JAVA_HOME error that says
Your JAVA_HOME environment variable must be set. So, I entered $JAVA_HOME and got back
/usr/lib/jvm/java-6-openjdk/bin which seems correct. I am confused why this is happening and was wondering if someone might know why and how to fix this.

:confused: