[javax.comm] wha?

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path

Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver

Exception in thread "main" javax.comm.NoSuchPortException

at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)

at ser1.<init>(ser1.java:44)

at ser1.main(ser1.java:117)

(line 44)portId = CommPortIdentifier.getPortIdentifier("COM4");

serialPort = (SerialPort)portId.open("GenericSerialReader", 100);

serialPort.setSerialPortParams(4800, SerialPort.DATABITS_8,

SerialPort.STOPBITS_1,

SerialPort.PARITY_NONE); //

serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE); //

serialPort.enableReceiveThreshold (1);

serialPort.enableReceiveTimeout(100);

that is my error message and corresponding code. line 44 is the first line of my constructor. i guess where im lost is where it starts talking about SolarisDriver. i downloaded the generic version of the API...

im using winxp tablet edition (aka winxp pro).

[1151 byte] By [ZiVvmOa] at [2007-10-3 8:30:01]
# 1

Strangely enough Sun doesn't support javax.comm for windows anymore.

There is a nice alternative available though: [url=http://www.rxtx.org]rxtx[/url]. The API is identical to

Sun's API, all that differs is the package name: gnu.io. I've worked with

this package a lot and found it is very stable and much faster than Sun's version.

kind regards,

Jos

JosAHa at 2007-7-15 3:36:59 > top of Java-index,Java Essentials,Java Programming...
# 2
thank you much. i got the rxtx and everything is working perfectly now.
ZiVvmOa at 2007-7-15 3:36:59 > top of Java-index,Java Essentials,Java Programming...