jQuery in Action, 3rd edition
The moose likes Other JSE/JEE APIs and the fly likes Java Comm API on Linux can't find javax.comm.properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Comm API on Linux can Watch "Java Comm API on Linux can New topic

Java Comm API on Linux can't find javax.comm.properties

Steve Lustbader

Joined: Oct 15, 2005
Posts: 1
I'm trying to set up the Java Communications API on Linux using the comm API from Sun (not rxtx), and I can't seem to get it to find my javax.comm.properties file. I've put comm.jar in $JDK_HOME/jre/lib/ext and the properties file in $JDK_HOME/jre/lib and $JDK_HOME/lib (using JDK 1.4.2_08).

I set my CLASSPATH to "$JDK_HOME/jre/lib/ext/comm.jar:BlackBox.jar" and when I try to run BlackBox, I get:
javax.comm: Error loading javax.comm.properties!

java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at BlackBox.main(Unknown Source)
Exception in thread "main" java.lang.UnsatisfiedLinkError: isSessionActive
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at BlackBox.main(Unknown Source)

Any idea what's wrong?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Java Comm API on Linux can't find javax.comm.properties
It's not a secret anymore!