[Rxtx] First use of RXTX package
Trent Jarvi
tjarvi at qbang.org
Thu Apr 30 19:07:50 MDT 2009
On Thu, 30 Apr 2009, Luis Moreira wrote:
> Hi all,
>
> I have been a member of this list for a long time but I until now I have
> never used RxTx because I went a bit of Java for a while and had an
> alternative with Delphi and AsyncPro. I have now returned to Java’s warm
> bosom and I have invested a lot of time getting back into it, and I need
> now to get RxTx working.
>
> From what I have seen previously getting RxTx installed seemed like a
> very straightforward process but after looking at it yesterday I am
> starting to have my doubts. So here are my questions:
>
> - I would like to install in windows but I would like to start with
> Linux first. Which files do I need to download? I have been on the Wiki
> and downloaded rxtx 2.1-7r2 (stable), I have downloaded both the
> binaries and the source.
>
> - I have then tried to install and I do not understand at all what to
> do. I thought that you would have a jar file with all the classes
> required that you would import onto your classes by adding it to your
> CLASSPATH, it would also have the native methods on another file,
> perhaps a .dll file that we would install to the same directory as the
> jar file and that would be sufficient. But looking at the info it does
> not look like it is that easy. Can someone point me in the right direction?
>
>
> Apart from the files on the Wiki I found another one in Sourceforge
> which actually has the jar file, so I am very confused.
>
> Any help will be welcomed.
>
> Best Regards
>
Hi Luis,
RXTXcomm.jar needs to be on your CLASSPATH.
export CLASSPATH=/home/luis/rxtx/RXTXcomm.jar:.
librxtxSerial.so needs to be on your java library path. The current
directory should be fine for experimenting. If there is version
information in the filename you can just rename it librxtxSerial.so.
If you have problems, most of the issues are captured on the wiki:
http://rxtx.qbang.org/wiki/index.php/Trouble_shooting
If you have time, we could use an entry for installing the precompiled
binaries on the wiki page - put your best attempt in as you figure it out:
http://rxtx.qbang.org/wiki/index.php/Installation_on_Linux
I don't know what you found on sourceforge. Many projects distribute rxtx
to make life easier for users of their software. If it is interesting to
you, try contacting the person responsible for the page/submission.
All the best,
--
Trent Jarvi
tjarvi at qbang.org
More information about the Rxtx
mailing list