# Alex Lau Kaffe-Directfb-AWT Mini-HOWTO 1) Jikes jikes-1.22.tar.bz2 from IBM $> wget ftp://www-126.ibm.com/pub/jikes/1.22/jikes-1.22.tar.bz2 $> tar jxvf jikes-1.22.tar.bz2 $> cd jikes-1.22 $> ./configure --prefix=/usr $> make $> sudo make install 2) Download Kaffe cvs $> tar jxvf kaffe-cvs-head-snap.tar.bz2 $> cd kaffe $> ./configure $> make $> make install 3) Directfb kawt download $> cvs -d:pserver:anonymous@cvs.directfb.org:/cvs/directfb -z3 login $> cvs -d:pserver:anonymous@cvs.directfb.org:/cvs/directfb -z3 co -P kawt $> cd kawt $> ./configure --with-jni=/usr/local/kaffe/include ** put the following line in the build.xml ** update the src/java/java/awt/Toolkit.java file to become following //static LightweightPeer lightweightPeer = new LightweightPeer() { //}; static LightweightPeer lightweightPeer; //static WindowPeer windowPeer = new WindowPeer() { //}; static WindowPeer windowPeer; $> make $> make install $> cp thirdparty/log4j.jar /usr/local/kaffe/jar/lib ** now you can run the sample /usr/local/kaffe/bin/kaffe \ -Xbootclasspath:/p:/usr/local/kaffe/jre/lib/log4j.jar:\ # ok the log4j is in the thirdparty directory /usr/local/share/kawt/kawt.jar:\ /usr/local/kaffe/jre/lib/kaffeawt.jar:\ /usr/local/kaffe/jre/lib/rt.jar \ -Djava.library.path=/usr/local/lib/libkawt.so \ test.awt.AwtTest