<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3700.6699" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I want to install kaffe in my arm linux, and compile it in my
i386 linux.</FONT></DIV>
<DIV><FONT size=2>I compliled the kaffe like this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>export CC=arm-linux-gcc<BR>export AS=arm-linux-as<BR>export
LD=arm-linux-ld<BR>export CPP='arm-linux-gcc -E'<BR>export
AR=arm-linux-ar<BR>export NM=arm-linux-nm<BR>export
STRIP=arm-linux-strip<BR>export OBJCOPY=arm-linux-objcopy<BR>export
OBJDUMP=arm-linux-objdump<BR>export RANLIB=arm-linux-ranlib<BR>export
QTDIR=/usr/local/qt-2.3.2<BR>export QTEDIR=$QTDIR <BR>export
QPEDIR=/usr/local/qtopia-free-1.5.0<BR>export
KAFFEH=/usr/local/kaffe/bin/kaffeh<BR>export
LD_LIBRARY_PATH=/usr/local/qt-2.3.2/lib:/usr/local/qtopia-free-1.5.0/lib:$LD_LIBRARY_PATH<BR>export
PATH=$QTDIR/bin:$PATH<BR>export PATH=/usr/local/kaffe/bin:$PATH<BR>export
PATH=$QPEDIR/bin:$PATH </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>./configure --prefix=/usr/local/kaffe --build=i386-linux
--host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g++ CPP='arm-linux-gcc -E'
--with-qtdir=/usr/local/qt-2.3.2 --with-awt=qt
--with-includes=/usr/local/qtopia-free-1.5.0/include
--with-libraries=/usr/local/qtopia-free-1.5.0/lib --without-x --target=arm-linux
--enable-pure-java-math --disable-esdtest --without-esd
--with-cpu=xscale</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Then an error about "-lqtopia" occured. I deleted the
"-lqtopia" in the makefile. After that, a new problem about "can not execute"
occured in the process of make. Since someone told me that it is a bug of
kaffe-1.1.4, I use make -t to ignore all the errors left.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Then I got the final files. I put them into the folders
respectively according to the kaffe installed in my i386
linux.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>When I tried to use it in the arm linux, a new problem
comes:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>[root@Linux 1]$appletviewer HelloWorld.html<BR>pc :
[<401f8ab8>] lr : [<401f89d4>]
Not tainted<BR>sp : bffff7c0 ip : bffff7d0 fp : bffff7cc<BR>r10:
400d5e84 r9 : 40066050 r8 : 400ec2a4<BR>r7 : 002210d4 r6 :
002210d4 r5 : 00000000 r4 : 00000080<BR>r3 : 00000000 r2 :
00000020 r1 : 00000000 r0 : 002210d0<BR>Flags: Nzcv IRQs
on FIQs on Mode USER_32 Segment user<BR>Control: 397F
Table: A323C000 DAC: 00000015<BR>Internal error: caught an unexpected
exception.<BR>Please check your CLASSPATH and your
installation.<BR>java/lang/NullPointerException<BR>Aborted</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>I have tried to set the CLASSPATH like this:</FONT></DIV>
<DIV><FONT size=2>export
CLASSPATH="./:/usr/local/kaffe/lib:/usr/local/kaffe/jre/lib"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>But it doesn't work.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Is it really something wrong about CLASSPATH? If so, what a
true CLASSPATH should be?</FONT></DIV></BODY></HTML>