0

I have run the following to install the RXTX libraries in Ubuntu x86 13.04.

sudo apt-get install librxtx-java

I am using Netbeans and have added the RXTXComm.jar as a library to my application.

The code still flags the error of not being able to import the following:

import gnu.io.CommPort;
import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;

librxtxSerial.so is in these locations:

/usr/lib/jni/librxtxSerial.so
/usr/lib/jvm/java-7-oracle/jre/lib/i386/librxtxSerial.so

I have added a file to /etc/ld.so.conf.d/rxtx.conf which contains the line:

/usr/lib/jni/

I then ran sudo ldconfig.

I continue to get the java import issues in netbeans ? Any ideas?

DevilCode
  • 1,054
  • 3
  • 35
  • 61

1 Answers1

0

Maybe PureJavaComm is better library - it doesn't use native libraries.

user2053898
  • 479
  • 1
  • 5
  • 8