Error with win32com.dll in Eclipse



I am getting an error in eclipse with regards to my win32com.dll file. From the error it would appear I am trying to use a 32-bit .dll instead of a 64-bit, but unfortunately I haven’t been able to find a 64-bit win32com.dll file anywhere and I’m at a loss at how to proceed. I literally downloaded Eclipse tonight and this is my first time writing in Java, so please be gentle.

Thanks!

Error loading win32com: java.lang.UnsatisfiedLinkError: C:Program
FilesJavajre6binwin32com.dll: Can’t load IA 32-bit .dll on a AMD
64-bit platform

EDIT: I think Java discontinued support of the Java Communications API, but I’m not really sure what else to do to fix this. Can anyone point to a good serial port Java example? I haven’t been able to find one anywhere…

Answer

So I gave up on this and switched to RXTX. I think quite a few people have done this as all my research pointed to this instead of figuring out what I wanted to originally.

In a nutshell you need to do is to download the correct files from here.

Install the files in the following directories:

rxtxParallel.dll & rxtxSerial.dll –> Program Files/Java/jre6/bin

RXTXComm.dll –> Program Files/Java/jre6/lib/ext

Note that this is only for 64-bit environments. Hope this helps for anyone in my position in the future!



Source: stackoverflow