[kaffe] [kaffe]How Can I solve the java.lang.ClassNotFoundException Error

정종진_KETI mozzalt at keti.re.kr
Mon May 19 22:18:01 PDT 2003

Hi Kaffe export.
I have built kaffe(V1.0.7) succesfully. Building kaffe made a kaffe tree in the directory /usr/local/kaffe

First I compiled jikes 1.18 with the follwing options. 
#./configure prefix=/usr/loca/bin/jikes
#make install

Next I compiled a kaffe with the following options
export QTDIR=/usr/loca/qt-3.1.1
CC=mips-linux-gcc CFLAGS="mcpu=r5000" \
CXX=mips-linux-g++ CXXFLAGS="mcpu=r5000" \
ac_cv_c_char_unsigned='no' ac_cv_algnmentof_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'
/root/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-include=/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-stat --disable-gcj

cf) my system is    1. QT version 3.1.1
                             2. OS : linux
                             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 jikes-1.18.tar.bz2 file in jieks-homepage)

After I built kaffe successfully, I copied kaffe tree (/usr/local/kaffe) to the same directory of target.
I tested test files. I succeeded the test of files in /test/regression/*.java
But I found the following message
  > Waring : Unrecognized version number 47/0 in classfile.

I can't know why the waring 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 the examples (Cals, Unico and WidgetsDemo), I cound find the following eroor
java.lang.ClassNotFoundException : /test/awt/Cals/Cals
            at kaffe.lang.SystemClassLoader.findClass(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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20030519/ad732135/attachment-0007.htm 

More information about the kaffe mailing list