Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求助!关于java对串口编程问题 [Re:影树]
java8110





发贴: 22
积分: 0
于 2004-09-09 11:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有一个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.




话题树型展开
人气 标题 作者 字数 发贴时间
2979 求助!关于java对串口编程问题 影树 114 2004-09-09 09:31
2317 Re:求助!关于java对串口编程问题 java8110 1708 2004-09-09 11:57
2580 Re:求助!关于java对串口编程问题 kingtrue 67 2004-09-09 16:57

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923