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

Dalibor Topic robilad@yahoo.com
Tue May 20 06:26:01 2003


Hi,

please don't send HTML mails to the mailing list, they look really weird in the
archive. This one for example looks like :
http://www.kaffe.org/pipermail/kaffe/2003-May/042165.html

--- มคมพม๘_KETI <mozzalt@keti.re.kr> wrote:
> 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 
> #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

Are you sure you are using 1.0.7? That one didn't have support for qt merged
in. Current CVS sources have, though.
 
> 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)

jikes 1.18 is fine, there is no need to use jikes from CVS AFAIK.

--------------------------------------------------------------------------------------------------------
> 
> 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?

Yes.

> Must I update jikes from jikes CVS repository?

No.

See http://kaffe.org/pipermail/kaffe/2003-January/028657.html for an
explaination. Thanks to Benja, this has been fixed in the current CVS.

> 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?

it shouldn't be related to jikes at all. What's the exact command you used to
run the above example?

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com