Re: Java comm API examples needed



Hello

Thanks a lot for your prompt guidance. I tried running the examples on
the following link.
http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html.
Are those programs specific to solaris? Will they work on windows?

I get the following errors when i tried to run the programs:

E:\project\ckt download\Serial_port\trial2\classes>java SimpleWrite
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while
loading driver c
om.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while
loading driver c
om.sun.comm.SolarisDriver
port COM1 not found.

E:\project\ckt download\Serial_port\trial2\classes>java SimpleRead
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while
loading driver c
om.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while
loading driver c
om.sun.comm.SolarisDriver
port COM1 not found.

I get the following errors:


comm.jar is placed in:


%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib/ext

win32com.dll is placed in:

%JAVA_HOME%/bin

%JAVA_HOME%/jre/bin

%windir%System32

javax.comm.properties is placed in:


%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib

Environment variable PATH also points to comm.jar file. Please guide
me as to how I can correct the above errors.
Regards
Quad

P.S: I multiposted cos my initial post wasn't updated initially, and I
wasn't sure if the mail had got posted. No hard feelings pls!

.



Relevant Pages