CommPortIdentifier.getPortIdentifiers() is empty

I am trying to work on a legacy SMS gateway built on java. I’ve made my hands dirty with AT commands with Ubuntu ‘long long ago’ – Pls check this –

Connecting Sony Ericsson W810i to Mandriva and executing AT commands with Java

So, I thought I can do something here. Okay. I setup the environment with my Eclipse is using jdk8 x64.

I got two errors –

Firstly, CommPortIdentifier.getPortIdentifiers() returns no COM ports. I copied win32com.dll to jre\bin folder and to jre\lib


Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_45\bin\win32com.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform


Java already stopped support javax.comm library. So they do not have x64 bit dll to work with 64 bit java. So, I’ve downloaded 32 bit version of JRE 5 (latest JRE doesn’t work for javax.comm). hah!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s