I am getting the following error.(It tells there is no elements in the Enumeration) Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
Sun Certified Java Programmer for Java 2.0 (93%) <p>----Winners always make the learning a habit
Joined: Jun 19, 2001
Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path Sounds like you either have your DLL located in the wrong directory or you do not have it in the correct path. Have yo installed the comapi properly? Check that your Dll are located inside; javax.comm DLL in the lib directory inside the jdk directory win32.comm DLL in the bin directory inside the jdk directory Then depending on your compiler you will need to set the paths for all required libraries. ------------------
Joined: Apr 03, 2010
I followed Jamie Young's instructions and it worked. However here is something I felt to add:
1) In order for the Java communications API to find ports the file
javax.comm.properties must be in the correct place. The preferred location
is in <jdk>/lib. In case you are using just a JRE installation, then it should be in <jre>/lib directory.
2) The win32comm.dll should be placed in the <jdk>/bin directory (as suggested by Jamie) or in case you
just have a JRE installation then it should be placed in the <jre>/bin directory.