LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2011, 12:46 PM   #1
balaqemu
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Rep: Reputation: Disabled
Java Code for Serial Port RXTX


Hi,

I have installed the RXTX jars(http://rxtx.qbang.org/wiki/index.php/Main_Page) but I get the import error

TwoWaySerialComm.java:1: cannot find symbol
symbol : class CommPort
location: package gnu.io
import gnu.io.CommPort;

I followed all the steps provided by that link . I'm trying on Ubuntu JVM -> ie /usr/lib/JVM/java-1.5.0-sun-1.5.0.26 .

pls help
 
Old 11-18-2011, 02:41 AM   #2
AlexeyS
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
It`s look like your JVM does not know where the RXTXcomm.jar locates. Are you sure that you defined the CLASSPATH correctly?
Try make project with IDE(Eclipse, NetBeans, ...) and connect all necessary *.jar and *.so files for your project.
I think this way will solve your problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rxtx serial port event problems with usb adapter siriyu Programming 2 07-03-2009 03:17 AM
rxtx serial port event problems with usb adapter siriyu Linux - Software 0 03-30-2009 06:48 AM
rxtx serial port event problems with usb adapter siriyu Linux - Software 1 03-28-2009 06:19 AM
problem installing rxtx for serial port control rastavideo Linux - Software 1 01-17-2008 09:29 PM
help with serial port in java Diederick Programming 1 11-15-2005 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration