Re: [greenstone-users] Problem running GLI via x11

From John R. McPherson
DateFri, 26 May 2006 14:28:54 +1200
Subject Re: [greenstone-users] Problem running GLI via x11
In-Reply-To (44757C2C-9A00-00D8-0-auburn-edu)
On Thu, May 25, 2006 at 09:43:02AM -0500, Beth Nicol wrote:

> -bash-3.00$ gli.sh
>
> Greenstone Librarian Interface (GLI)
> Copyright (C) 2005, New Zealand Digital Library Project, University Of
> Waikato
> GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
> This is free software, and you are welcome to redistribute it
>
> Checking GSDL: /usr/local/gsdl
> Checking Perl: /usr/bin/perl
> Checking Java: /usr/bin/java
>
> Running the Greenstone Librarian Interface...
> Warning: -Xmx128M not understood. Ignoring.
> Exception in thread "main" java.lang.NoSuchMethodError: method
> javax.swing.text.JTextComponent.getKeymap was not found.
> at _Jv_ResolvePoolEntry(java.lang.Class, int)
> (/usr/lib/libgcj.so.5.0.0)

Hi,
unfortunately the problem isn't anything easy to fix such as ssh x11
forwarding permissions. The problem here is that red hat comes with the
free GCJ java runtime, instead of Sun's JRE which they aren't allowed to
distribute. GLI is using some java classes that GCJ has not implemented
yet.

I suspect that GCJ doesn't work at all with swing, although I'm not
much of a java person so I don't know. You'll probably have to install
Sun's java runtime, or the Blackdown java runtime which is a version of
Sun's JRE modified to work better on linux (although still under the
sun license that doesn't allow redistribution).

John