I am running on Ubuntu 12.04. I am trying to communicate my Arduino with Java.
I have a source file SerialTest.java in directory /home/me/Desktop/folder
Inside the directory contains both RXTXcomm.jar, librxtxSerial.so, and my source code file.
I tried these methods to compile the SerialTest.java:
$ javac SerialTest.java
and I get the following errors:
SerialTest.java:4: error: package gnu.io does not exist
$ javac -verbose -classpath .:RTXXcomm.jar SerialTest.java
And I got the same error
SerialTest.java:4: error: package gnu.io does not exist
What I have referred to: javac -classpath not doing the trick
May I know what I am doing wrong? I am new to this. Thank you.