Is RXTX compatible with Arduino Mega 2560 R3?

Hello Everybody:

I am from Mexico city and I am getting started with the Aurdino World, so I do not know a lot of things (of course I am reading to get started). Well I want to transfer information between an Arduino Mega 2560 R3 (to be more specific) and an aplication built on Java, I want to put some information in a keyboard matrix (connected to the Arduino 2560) and that information show it in the console of the Java Virtual Machine and furthermore I want to tap a String with the PC´s keyboard and that String show it in a LCD Display of 16X2 connected to the Aurdino. I found a library called RXTX that can do the magic, the question is (as you can see in the subject of this topic): Is RXTX compatible with Arduino Mega 2560 R3?

Then I don´t know how to write the program that manage the part of the display in the LCD and the reading of data from the keyword, I mean I do that part in Java or in the sketch?

Finally , for doing this comunication between Java and Arduino, Does the Arduino need a firware and a driver (For example Windows 7 64x)? If is necessary where can I find the firmware and the driver? I do not found that information thats why I am doing this questions I am not used to make questions I´d rather search information, however I couldn´t find it , if someone has information that are the answers for my questions, please do me the favour sharing me please.

Best wishes from Mexico.

Diego.

The Arduino board creates an virtual serial port via the usb bus.
The Arduino IDE uses Java RXTX itself to communicate with the Arduino board.
http://playground.arduino.cc/Interfacing/Java

"Processing" is another way to communicate with the Arduino.
http://playground.arduino.cc/Interfacing/Processing

I have written a pair of demo programs here
http://forum.arduino.cc/index.php?topic=225329.0
to show communication between a PC and an Arduino. I originally wrote the Python (PC) program in JRuby which uses the JVM. I have also posted a copy of the JRuby program in that Thread at the request of another Forum user. That version of the JRuby program uses JSSC (Google JSSC) instead of RxTx but I have only started using JSSC and an earlier version works fine with RxTx.

The reality is that RxTx (or JSSC) has no idea what it is connecting to so the fact that it's a Mega is irrelevant.

I haven't tried the JRuby program with JSSC (or RxTx) on a Windows PC (only Linux) but I think (50% sure?) it should work with JSSC (less sure of RxTx) - provided, of course, that it is pointed at the correct Com port. I may try this over the next few days, but not today.

...R

Caltoa and Robin2 Thank you so much for share your knowledge.

Greetings from Mexcio =).