poniedziałek, 6 grudnia 2010

JDK 64bit + WTK on Ubuntu

If you installed WTK (wireless toolkit) on your Ubuntu 64bit system you'll most probably have a little problem. When you try to run the mobile emulator you get

java.lang.UnsatisfiedLinkError: /usr/local/netbeans-6.9/mobility/WTK2.5.2/bin/sublime.so: /usr/local/netbeans-6.9/mobility/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

Fix (execute in a terminal):
sudo apt-get install ia32-sun-java6-bin
sudo gedit /usr/local/netbeans-6.9/mobility/WTK2.5.2/bin/emulator
edit javapathtowtk=
to
javapathtowtk=/usr/lib/jvm/ia32-java-6-sun-1.6.0.22/bin/

2 komentarze:

  1. Thanks, worked for me!

    Fixed in the same way also other WTK files:

    defaultdevice
    emulator
    i18ntool
    ktoolbar
    mekeytool
    prefs
    siptool
    utils
    wscompile

    OdpowiedzUsuń