Re: [greenstone-users] java exception

From John R. McPherson
DateThu, 8 Feb 2007 06:03:08 +1300
Subject Re: [greenstone-users] java exception
In-Reply-To (45C9FB01-4020405-sdb-org)
On Wed, Feb 07, 2007 at 05:14:57PM +0100, Julian Fox wrote:
> Hi,
> I've set up Greenstone (on Linux (Ubuntu edgy) all running fine with
> Apache 2 - except the library interface. I'm getting a Java NullPointer
> exception. Why? As far as I can see I've got Sun Java 1.5 running but I
> get this error message:
>
> Running the Greenstone Librarian Interface
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at java.lang.Class.InitializeClass(libgcj.so.70)

> In layman's terms I can see that gli and java are not quite connecting
> ;-) - what do I need to do?

That "libgcj.so" message suggests to me that your system is still
using the opensource java runtime instead of the sun java runtime,
and unfortunately the GNU one isn't yet feature-complete with the sun
runtime.

Try running the command "java -version" from the command line. For
the Sun JRE, you'll get something like:

java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

For the GNU one, you'll get something like:

java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-14ubuntu7)

If you get the second one, you'll need to check your installation of
the sun JRE.

John