www.delorie.com/gnu/docs/kawa/kawa_11.html   search  
Buy GNU books!

Kawa, the Java-based Scheme system

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3.4 Compiling Kawa to native code with GCJ

The GNU Compiler for the Java(tm) Programming Language (GCJ) is part of the GNU Compiler Collection (GCC). It can compile Java source or bytecode files into native code on supported systems. You need gcc-3.0 or later, and only Intel x86-based Linux/GNU system have been tested with Kawa.

First, get and install GCC 3.0. Set PREFIX to where you want to install GCJ, and configure it with these options:
./configure --enable-threads --enable-languages=c++,java --prefix $PREFIX
make bootstrap
make install
Make sure gcj is in your path and refers to the newly-installed version, and if needed, set LD_LIBRARY_PATH to point to the directory where libgcj.so was installed:

To build Kawa, you need to specify --with-gcj to configure which tells it to use GCJ. Currently you also need to specify --without-awt --without-swing because GCJ does not yet support AWT or Swing:
./configure --with-gcj --without-awt --without-swing --prefix $PREFIX
Then as before:
make install

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003