This is how I got it to work.
I’ve tested it using JDK 1.6 (32bit) on my Windows 7 64bit machine.
- Install 32bit JDK.
- Copy ‘win32com.dll’ to JDK_HOME\jre\bin.
- Copy ‘javax.comm.properties’to to JDK_HOME\jre\lib.
- Copy ‘comm.jar’to to JDK_HOME\jre\lib\ext.
Now run your program and it should work.