Java libraries for GCJ

If you have been using GCJ for some time you know that a usual problem is the availability of third party java libraries (junit.jar, jdom.jar, log4j.jar...etc...).

A good resource for compiling many well known libs is the Rhug. However, the Rhug does not cover everything. This page adds a few more libraries to the collection. You won't find any binaries here but rather ready to use automake/autoconf scripts to quickly compile and install the needed libraries.

Libraries available

So far, I have only a script for JUnit-3.7 and JUnit-3.8.1 (thanks to Ravi Pratap M) but other are coming, starting with JDom. You are welcome to make suggestions. Please make sure that you have checked the Rhug before!

Installation instructions

The scripts are splited in two parts: script common to all compilations and script specific to a particular library. You must download both to compile a given library. For example, in order to compile JUnit 3.7 you need both gcj_common.tar.bz2 and gcj_junit3.7.tar.bz2. The exact instructions for each library are in the file INSTALL of each archive. So for JUnit it is in gcj_junit3.7.tar.bz2. You also need to download the official distribution of the library (junit3.7.zip for JUnit) see INSTALL for futher instructions.

In short, download gcj_common.tar.bz2, gcj_junit3.7.tar.bz2 and unarchive the second file with a command similar to this (tar.bzip2 file):

   tar -jxvf gcj_junit3.7.tar.bz2
then read the instructions in INSTALL.

Downloads

gcj_common.tar.bz2    89 K
   
gcj_junit3.7.tar.bz2   49 K
gcj_junit3.8.1.tar.bz2   79 K

If you experience problems with these scripts feel free to email me.

Olivier Louchart-Fletcher
olivier at zipworld dot com dot au