Hi guys, i got a problem about using javax.comm. I've downloaded the Windows version of Java Commnunication API from java.sun.com. I extracted the zip file, placed the comm.jar at c:\j2sdk1.4.0\jre\lib\ext folder, placed the javax.comm.properties at c:\j2sdk1.4.0\jre\lib folder, placed the win32com.dll at c:\j2sdk1.4.0\bin folder. After that, i wrote a simple program to test whether i can get any serial/parallel port object from CommPortIdentifier.getPortIdentifiers();. It returns an empty enumeration, meaning that none of my ports are detected. I tried running the BlackBox example that's also shipped with the extension API, and the message "No serial port found". Please help;
You should do identicat operation to jre under program files directory. I believe that`s your problem.
Joined: Dec 05, 2001
You should do identicat operation to jre under program files directory. how do i actually do that ? identicat operation to jre under program files directory ? i really dont get the idea. anyway, thanks for the help.
Hallo, to copy all the files into the JDK directory structure is OK for developing and compiling. But all the files must be present in the JRE file structure too. So copy it to the JRE directory of your operating system. So you have to do the identical operation to the OS JRE directory that you already did to your JDK directory. When running your program it should find all the ports.
Hopefully this helps Jochen [ September 18, 2002: Message edited by: Jochen van Waasen ]