This discussion is archived
1 Reply Latest reply: May 25, 2010 4:36 AM by 843851 RSS

wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismat

843851 Newbie
Currently Being Moderated
i am using ubuntu 10.4 as operating system. and WTK 2.5.2 and open java 6 and
using

Pulsar for Mobile Developers.
Build id: 20100318-1801

when i had created a new project and the eclipse automatically generate the code and i had tried to*
run that program then also it is showing error as follows



java.lang.UnsatisfiedLinkError: /home/chandrakant/Downloads/WTK2.5.2/bin/sublime.so: /home/chandrakant/Downloads/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
     at java.lang.Runtime.load0(Runtime.java:787)
     at java.lang.System.load(System.java:1022)
     at com.sun.kvem.Sublime.<init>(Sublime.java:29)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
     at java.lang.Class.newInstance0(Class.java:372)
     at java.lang.Class.newInstance(Class.java:325)
     at com.sun.kvem.Lime.createLime(Lime.java:40)
     at com.sun.kvem.KVMBridge.<init>(KVMBridge.java:46)
     at com.sun.kvem.KVMBridge.getBridge(KVMBridge.java:37)
     at com.sun.kvem.midp.MIDP.run(MIDP.java:699)
     at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(EmulatorInvoker.java:107)
     at com.sun.kvem.environment.EmulatorInvoker.main(EmulatorInvoker.java:135)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     at com.sun.kvem.environment.JVM.main(JVM.java:103)
  • 1. Re: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismat
    843851 Newbie
    Currently Being Moderated
    I'm also using Ubuntu 10.04 and have just faced the same problem. It's because you're using the 64 bit edition of the JDK. You need to install the 32 bit version of the JDK too, and configure the WTK to use such JDK instead. I've been able to solve it thanks to an old thread from these forums. Read the entire solution here: [http://forums.sun.com/thread.jspa?forumID=82&threadID=5217069|http://forums.sun.com/thread.jspa?forumID=82&threadID=5217069] .

    There's also more information in this other thread: [http://forums.sun.com/thread.jspa?forumID=82&threadID=5273888|http://forums.sun.com/thread.jspa?forumID=82&threadID=5273888] .