> I am writing a Java program that should be communicating with a
> microcontroller (AVR), how can this communication be estblished?
Those Atmels can easily handle a UART so RS232 is an easy possibilty.
Java supports RS232 and small converters allow you to use RS422 or RS485
without any additional coding.
kind regards,
Jos
> what difference does it make whether the communication is over a
> serial port or anything else?
Your question is a non-sequitur: first you're asking *how* to communicate
with such a little Atmel and then you pose the question what the difference
would be for hypothetical other possibilities to establish communication
between a host and that thingie. I personally would welcome a fast
ethernet device for communication purposes.
kind regards,
Jos
> I think he's asking - and I'd like to know too - is a
> library out there that provides Java support for
> serial ports so we don't have to make our own native
> methods?
For serial (or parallel) port comms, there is [url=http://www.rxtx.org/]RXTX[/url]. Personally I prefer to use USB, since serial/parallel ports are slowly disappearing, in which case you can use [url=http://www.steelbrothers.ch/jusb/]jUSB[/url].
Since most uCs don't natively support USB, you can use some sort of USB->serial/parallel converter. Some of these have drivers and APIs already written, which makes life incredibly easy, e.g. [url=http://sourceforge.net/projects/ftd2xxj]FTD2xxj[/url].