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;
Hi, everybody I have the same problem with my aplication. I've set the correct classpath, put the files in the exactly same place, just like jhun kam did, but always the same, Java tells me that there are no ports. I have a Windows 98, with the correct Java COM library. Anybody have a clue? Thanks to all. Marquicio
I had the same problem for ages everybody has different ideas as to where to put everything but this worked for me: place win32com.dll in <j2sdk>\jre\bin folder place com.jar in <j2sdk>\jre\lib\ext folder place javax.comm.properties in <jsdk>\jre\lib folder where <j2sdk> refers to the path. Hope this helps.