File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes javax.comm problem ! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "javax.comm problem !" Watch "javax.comm problem !" New topic
Author

javax.comm problem !

jhun kam
Greenhorn

Joined: Dec 05, 2001
Posts: 18
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
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
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
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.
 
subject: javax.comm problem !
 
Similar Threads
Java Comm API... Please respond
CommPortIdentifier.getPortIdentifiers is empty
problem in installing the java communications API
javax.comm problems ! no ports found !
problem in installing the java communications API