[kaffe] How I can solve the java.lang.ClassNotFoundException
정종진_KETI
mozzalt at keti.re.kr
Mon May 19 20:00:01 PDT 2003
Hi kaffe export.
I have built kaffe(V1.07) successfully. Building Kaffe made a kaffe tree in the directory /usr/local/kaffe.
First, I compiled jikes 1.18 with following opions
--------------------------------------------------------------------------------
./configure prefix=/usr/local/bin/jikes
--------------------------------------------------------------------------------
It made a jikes tree in /usr/local/bin/jikes
Next I compiled kaffe with the following options
--------------------------------------------------------------------------------
export QTDIR=/usr/local/qt-3.1.1
CC=mips-linux-gcc CFLAGS="-mcpu=r5000" \
CXX=mips-linux-g++ CXXFLAGS="-mcpu=r5000" \
KAFFEH=/usr/local/x86kaffe/bin/kaffeh \
ac_cv_c_char_unsigned='no' ac_cv_alignmentof_voidp='4' \
ac_cv_c_bigendian='yes' ac_cv_sizeof___int64='0' \
ac_cv_sizeof_int='4' ac_cv_sizeof_long='4' ac_cv_sizeof_long_long='8' \
ac_cv_sizeof_short='2' ac_cv_sizeof_voidp='4'
~/kaffe/configure \
--with-engine=intrp \
--with-jikes=/usr/local/bin/jikes/bin/jikes \
--target=mips-linux-gnu --host=mips-linux-gnu --build=mips-linux \
--with-includes=/usr/mips-linux/include --with-libraries=/usr/mips-linux/lib \
--with-awt=qt --with-qtdir=/usr/local/ qt-3.1.1 --without-alsa --without-esd
--disable-sound –enable-debug --disable-xprofiling --enable-xdebugging \
--disable-feedback --without-profiling --without-stats --disable-gcj
cf) 1. QT Version 3.1.1
2. OS : Linux (2,4,17)
3. CPU : mips-R5000
4. cross-compiler toolchain : SGI cross-compiler tool chain
mips-linux-gcc(egcs-2.91.66), mips-linux-g++, etc..
5. jikes – 1.18 (it is not updated from CVS. It is just a tar file in jikes-homepage)
--------------------------------------------------------------------------------
After I built kaffe successfuly, I copied kaffe tree (usr/local/kaffe) in the same directory of target.
I tested test files. I succeeded the test of files in /test/regression.
But I found the following message.
> Warning: Unrecognized version number 47/0 in classfile.
I can’t know why the message happens. Is it related with jikes 1.18? Must I update jikes from jikes CVS Repository?
Also the awt test files doesn’t work except TextEdit.
When I tested Cals, Unico and WidgetsDemo, I cound found the following error.
--------------------------------------------------------------------------------
java.lang.ClassNotFoundException: /Java_Test/awt/Cals/Cals
at kaffe.lang.SystemClassLoader.findClass0(SystemClassLoader.java:native)
at kaffe.lang.SystemClassLoader.findClass(SystemClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:98)
at java.lang.Class.forName(Class.java:73)
at java.lang.Class.forName(Class.java:42)
Caused by: <null cause>
--------------------------------------------------------------------------------
I can’t solve this problem. Is this error related with jikes?
When I had a jikes, doesn’t other java compiler ( kjc, kopi,etc) need?
Please give me a solution.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20030519/a75ea9e9/attachment-0007.htm
More information about the kaffe
mailing list