0

In order to communicate with my serial port I downloaded rxtx for windows 64 bit and pluged into my eclipse. Everything looks fine. But while I'm debugging it when it comes to

SerialPort serialPort = (SerialPort) portIdentifier.open("ListPortClass", 300);             
int b = serialPort.getBaudRate();

it goes to class file editor and says rxtxport.class not found. What could be the issue?

Jeevan Patil
  • 6,029
  • 3
  • 33
  • 50
hiii
  • 571
  • 2
  • 6
  • 10

1 Answers1

0

The problem sounds like a classpath problem. I'd say check the Eclipse Build Path.

Weirdly, the code snippet you provided did not contain said class, either it's incomplete or you might have the problem that it is a referenced class and a further 3rd party library is needed (ie, your package of rxtx is incomplete).

I'm not familiar with rxtx myself, so I cannot say if this is a definite probability, and on the other hand, this also comes down to the original answer: It is most likely a classpath problem, check whether all required libraries are included in the Eclipse Build Path.

Scorpio
  • 2,309
  • 1
  • 27
  • 45