sreda, 22. april 2009

COM port support on AMD64 and Sun JDK 6 under Linux

If you want to get support for COM ports under 64-bit Linux then you need to:
- go to http://www.ibm.com/developerworks/java/jdk/linux/download.html
- go to 64-bit AMD/Opteron/EM64T under Java SE Version 6
- download Java Communications API

Now you need to put:
- javax.comm.properties into $JAVA_HOME/jre/lib
- libLinuxSerialParallel.so into $JAVA_HOME/jre/lib/amd64
- comm.jar into your project or $JAVA_HOME/jre/lib/ext

Now you need to edit javax.comm.properties to point to a correct physical devices.
Objavite komentar