OK,忘了配置,进来个人吧,我给你分结帖
Installing the Java Communications API on JDK 1.2 (RC1)
<jdk> refers to the root directory of your JDK installation. If you installed JDK in c:\jdk1.2 then replace all reference to <jdk> with c:\jdk1.2. 
Windows: place the win32com.dll in <jdk>\jre\bin directory. Solaris: put the libSolarisSerialParallel.so in the LD_LIBRARY_PATH. Place the comm.jar in <jdk>\jre\lib\ext. Place the javax.comm.properties in <jdk>\jre\lib . Do not alter the CLASSPATH.