This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes architecture word width mismatch issue when runs j2me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "architecture word width mismatch issue when runs j2me" Watch "architecture word width mismatch issue when runs j2me" New topic
Author

architecture word width mismatch issue when runs j2me

Hasanur Rahaman
Greenhorn

Joined: Sep 27, 2009
Posts: 3
Hello Experts,

I am new in java and j2me, I have 64 bit machine and ubuntu 9.1 is installed, eclipse installed and followed instruction to install java micro addition as well in eclipse. But when I want to run a sample j2me file gives the following error. In this IDE j2se and android runs fine.

please help me. Here is the error ..

java.lang.UnsatisfiedLinkError: /media/Work/WORK/j2me_installation_pack/bin/sublime.so: /media/Work/WORK/j2me_installation_pack/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:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at com.sun.kvem.Sublime.<init>(Sublime.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.kvem.environment.JVM.main(JVM.java:103)
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
You need the 32-bit version of the JVM installed. These links explain the ELFCLASS32 error: Errors when Running GWT from Eclipse, GWT : "wrong ELF class: ELFCLASS32" Error in x64 Linux machine, wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismat
Hasanur Rahaman
Greenhorn

Joined: Sep 27, 2009
Posts: 3
Thanks for the links.
I will try them.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: architecture word width mismatch issue when runs j2me
 
It's not a secret anymore!