java8110
发贴: 22
积分: 0
|
于 2004-09-09 11:57
有一个java包javax.comm,在sun的网站可以下载,上面有例子
JDK 1.2 and the Java(tm) Communications API Version 2.0 License
As of the time of release of the Java(tm) communications API, limited testing with the lastest pre-release version of JDK 1.2 (RC1) has taken place. The testing has been limited to: can an application run using the Java communications API on JDK 1.2, and can the Java communications API find ports while running on JDK 1.2. A future version of the Java communications API will be tested on JDK 1.2 after a production release of JDK 1.2 is made.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Running the Java Communications API on JDK 1.2 (RC1) Once you have installed the Java communications API you should be able to run applications that take advantage of the Java communications API without further modifications. Use the -cp option to java to indicate the location of the class or jar files for your application: java -cp c:\myapp\myapp.jar MyApp
-------------------------------------------------------------------------------- Copyright © 1997-1998 Sun Microsystems, Inc.
|