简体   繁体   中英

import javax.comm*; error

do i need to install netbeans 6.8 for serial port support?

import javax.comm*; gives an error in my netbeans 5.5.1 ... what could be the actual problem?

i downloaded comm api jar folder from : http://www.oreilly.com.tw/bookcode/java_io/ where to add this one so that import javax.comm.* won't give any error

Download the COMM API from here and add the jar to your netbeans classpath.

Even if that works for you, I still suggest upgrading to NetBeans 6.8. Version 5.5 is too outdated.

No path or Netbeans upgrade nessicary I believe, just add the files from the comm library to the right folders. For me these directories are relative to C:\\Program Files\\Java\\jdk1.7.0_09\\jre , but they need to go in your Java JRE folder:

  1. The .jar in /lib/ext
  2. The .properties in /lib
  3. The .dll in /bin

if you use eclipse, i suggest you can select your project and Click the right mouse button at first.then select son menu named "Add Extern JARs"of menu named"buildpath", find your comm.jar you have download al last. i have slove this problem follow this steps.

I can give you a better link which consist of a zip containing the jat file ie :--

http://llk.media.mit.edu/projects/picdev/software/javaxcomm.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM