Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.comm problems ! no ports found !  RSS feed

 
jhun kam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets move this to Other APIs and see if they can help.
 
Marquicio Pagola
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
bob byter
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!