NetBeans mobile device emulator fails on x64 Linux system

The mobile device emulator fails to start with this error:

java.lang.UnsatisfiedLinkError: /home/myuser/WTK2.5.1/bin/ /home/myuser/WTK2.5.1/bin/ wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

My config: Ubuntu Karmic x64, OpenJDK-6 x64, NetBeans-6.8

The solution in my case is to change the vm used by the emulator:

Install the 32 bits java vm:

$ sudo apt-get install ia32-sun-java6-bin

Then edit netbeans_home/mobility8/WTK2.5.2/bin/emulator and set


with the trailing slash!

Now it works.



  1. Jason said

    The same fix worked for me. Thank you!

  2. Nowaker said

    This is the best solution – the simplest.

  3. M. Bean said

    Thank you for the fix! Works fine on my Debian Squeeze 64 bit! šŸ™‚

  4. sa7booch said

    Thank you for the post ! 10/10

RSS feed for comments on this post · TrackBack URI

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

%d bloggers like this: