I'm investigating options for our options on providing a web-based
java upgrader for a serial port device that my company produces. Can
anyone tell me if SerialPort communications are restricted when
running inside a java applet in IE? TIA.
-mdb
Matt Humphrey - 26 Nov 2007 16:27 GMT
> I'm investigating options for our options on providing a web-based
> java upgrader for a serial port device that my company produces. Can
> anyone tell me if SerialPort communications are restricted when
> running inside a java applet in IE? TIA.
An applet will not naturally have permission to access the serial port.
Actually, I'm pretty sure there's nothing in the JVM for accessing the
serial port at all--you'll need some kind of external library /dll and JNI
wrapper to do that. You'll have to sign the applet and the user will have
to grant permissions to load and run the external library (presuming it's
possible at all.) Alternatively, you can do it via an applicaton or by Java
WebStart, which can eliminate some of the hassle.
Matt Humphrey http://www.iviz.com/
Knute Johnson - 26 Nov 2007 22:42 GMT
> I'm investigating options for our options on providing a web-based
> java upgrader for a serial port device that my company produces. Can
> anyone tell me if SerialPort communications are restricted when
> running inside a java applet in IE? TIA.
>
> -mdb
If you don't need to do bidirectional communications and you are using a
Windows OS then it should be fairly easy. If not I think you are going
to find it very difficult. The serial comm software to interface with
Java requires installation of a DLL on the client machine. It is
disheartening that serial I/O through RS-232 and USB are not part of the
Java language support. It severely restricts Java's usefulness in that
area of programming.

Signature
Knute Johnson
email s/nospam/knute/