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;
Po-yu Chien
Ranch Hand
Joined: Nov 01, 2001
Posts: 45
posted
0
You should do identicat operation to jre under program files directory. I believe that`s your problem.
jhun kam
Greenhorn
Joined: Dec 05, 2001
Posts: 18
posted
0
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.
Jochen van Waasen
Ranch Hand
Joined: Jan 19, 2002
Posts: 33
posted
0
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 ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.