- 論壇徽章:
- 0
|
the following from http://gnu.wildebeest.org/diary-man-di/
Yesterday I was happy about SUN, because I saw an announcement that
WTK 2.5.1 was released. And it includes a Linux version. The versions
2.3 and 2.5 were Windows only. The only available Linux version was
2.2. It worked nice but missed some features and had an annoying bug
that signing of midlets were not possible. This bug was introduced in
WTK 1.1 and fixed in WTK 2.5.
Today I download WTK 2.5.1 for Linux and installed it. I tried to run a first midlet and got this error message:
java.lang.UnsatisfiedLinkError: /home/mkoch/local/WTK2.5.1/bin/sublime.so: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by /home/mkoch/local/WTK2.5.1/bin/sublime.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751......
I run a pure Debian Etch system as my desktop. 插個話我用的rays1.5r2
So its not too old. I
know there are releasons for etch not to include Glibc 2.4. Thats
really okay. But I really wonder why builds against Glibc 2.4? What
feature introduced in Glibc 2.4 is needed? I guess none.
They are just stupid and built against a new, shiny Glibc without caring about their users.
SUN: Please care about your users and release a new build against
Glibc 2.3 soon. (給SUN下指示了,不過現(xiàn)在已經(jīng)近八月了,SUN就沒理過)Not everyone will update his/her development machine
just to be able to run WTK. When you release proprietary software, do
it right. If you are not able to, make it open source, so the community
can fix it.
在sun的forum上,有一位同學的態(tài)度就平和一點:
Since Debian etch (and Ubuntu dapper) only have glibc 2.3.x, the
library is incompatible. You can see that when you do ldd
/path/to/sublime.so -- like this:
mcornils@asus:~/bt/WTK2.5.1/bin$ ldd sublime.so
./sublime.so: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4[color="navy"]' not found (required by ./sublime.so)
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3f000)
/lib/ld-linux.so.2 (0x80000000)
So, upgrade to more recent versions (lenny has glibc 2.5,
edgy and feisty are ok, too) or get Sun to recompile against the older
glibc (which might be difficult since they probably rely on some new
glibc 2.4 features).
Good luck,
-Malte
這是我在學習J2ME時遇到的問題,不過WTK的編譯校驗和創(chuàng)建JAR(create package)功能都是好使的,只是想在仿真器上運行時會出現(xiàn)上述問題。這個可以解決,直接放到手機上運行,麻煩些
![]()
借的這本書學的。
![]()
看這就是在手機上運行的從書上抄來的第一個程序Hello World
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/2355/showart_347554.html |
|