[Rxtx] Mac commapi
Dr. Stephen Judd
sjudd at seas.upenn.edu
Sun Aug 27 22:55:09 MDT 2006
This was immensely helpful. Thank you, Tod.
I wish it had been explicit somewhere in the documentation; it would
have saved me 2 days of grief. One hugely valuable thing like this
little set of instructions is that it implicitly lists all the
hundreds of things
you DON"T have to do. I know it seems obvious to those in the
know, but every little bit of help on an arcane topic like this opens up
the product to an exponentially wider group of dilettantes.
I managed to get the SerialDemo program (from Sun) to work too. Hurrah!
However, it required changing all the javax.comm references to gnu.io
which I had heard of due to all my rambling readings. Is there not a
demo
program on rxtx.org already available that would not have needed this?
BTW, the link on the Projects page for
jPIC[Source] sends a *.hex file to a PIC 16F877 or similar chip...
takes me to nowhere useful.
I do not understand what the name "Toybox" is meant to imply.
Thanks,
sj
On 2006 Aug 26, at 7:08 PM, Tod E. Kurt wrote:
> You don't need Sun's CommAPI. You just need RXTX. Once you download
> RXTX, you need to tell 'java' where the RXTX jar ("RXTXcomm.jar" and
> the native library is ("librxtxSerial.jnilib" on Mac OS X) via the
> standard methods.
>
> For instance, if you've placed those two files in a directory called
> 'rxtxlib' and you want to run a Java class called HelloWorld in the
> current directory, do the following:
>
> % java -Djava.library.path=rxtxlib -classpath .:rxtxlib/RXTXcomm.jar
> HelloWorld
>
>
> On Aug 26, 2006, at 3:42 PM, Dr. Stephen Judd wrote:
>
>> Do I need to install javax.comm to use rxtx 2.1 on Mac OSX?
>> If so, where do I get it? Sun has various versions at
>> http://www.sun.com/download/products.xml?id=43208d3d
>> but they are for SolarisSparc, SolarisX86, Linux, and Generic.
>> Do I use the Generic one?
>> If so, read on; otherwise redirect me.
>>
>> While using the Generic version, my attempt to run the BlackBox
>> sample program
>> elicits a message saying it "can't find javax.comm.properties".
>> I found a note in the rxtx.org HowTo (for Linux) saying to create
>> this thing in
>> /usr/java/j2sdk1.4.0/jre/lib/javax.comm.properties
>> but where should it go on the Mac?
>>
>> After reading many versions of documentation around, and updates
>> and revisions and re-authorings, I have worked my way into a state
>> of confusion and high uncertainty. Please release me.
>>
>> sj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qbang.org/pipermail/rxtx/attachments/20060828/b80d6389/attachment-1105.htm>
More information about the Rxtx
mailing list