Solution to WTK failure in Linux64-bit system-Linux general technology-Linux programming and kernel information. For details, refer to the following. The 64-bit suse system is used, and jdk is installed with 64-bit. After WTK2.5.2 is installed, the self-contained example cannot pass. The error message is:
Java. lang. unsatisfiedLinkError:/home/developer/pai_3.3_myeclipse/WTK2.5.2/bin/sublime. so:/home/developer/apps_3.3_MyEclipse/WTK2.5.2/bin/sublime. so: wrong ELF class: ELFCLASS32
At java. lang. ClassLoader $ NativeLibrary. load (Native Method)
At java. lang. ClassLoader. loadLibrary0 (ClassLoader. java: 1751)
At java. lang. ClassLoader. loadLibrary (ClassLoader. java: 1647)
At java. lang. Runtime. load0 (Runtime. java: 770)
At java. lang. System. load (System. java: 1005)
At com. sun. kvem. Sublime. (Unknown Source)
At sun. reflect. NativeConstructorAccessorImpl. newInstance0 (Native Method)
At sun. reflect. nativeconstruct%cessorimpl. newInstance (nativeconstruct%cessorimpl. java: 39)
At sun. reflect. delegatingconstruct%cessorimpl. newInstance (delegatingconstruct%cessorimpl. 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 (Unknown Source)
At com. sun. kvem. KVMBridge. (Unknown Source)
At com. sun. kvem. KVMBridge. getBridge (Unknown Source)
At com. sun. kvem. midp. MIDP. run (Unknown Source)
At com. sun. kvem. environment. EmulatorInvoker. runEmulatorImpl (Unknown Source)
At com. sun. kvem. environment. EmulatorInvoker. main (Unknown Source)
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 (Unknown Source)
Only after query can we know that WTK cannot run on 64-bit jdk, which may be confusing for beginners of j2s. Install a 32-bit jdk and edit the emulator file in WTK2.5.2/bin.
Javapathtowtk =/usr/bin/X11/
Change to the path of the New 32-bit jdk installed by yourself, as follows:
Javapathtowtk =/home/developer/apps/jdk1.6.0 _ 05_32/bin/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service