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

From Edward Murrell
DateFri, 26 May 2006 14:58:53 +1200
Subject Re: [greenstone-users] Problem running GLI via x11
In-Reply-To (20060526022854-GF10668-matai-cs-waikato-ac-nz)
Ack, you are correct, I was looking at another email at the same time
(GSDL List "greenstone,i can not start gli" At 01:25 from Djassi Byll).


Beth:
I've found the easiest way to install Sun Java onto a system is too
download the self extracting installer ( jdk-1_5_0-linux-i586.bin ) from
java.sun.com, copy it to /opt/, run it as root from /opt, then symlink
the necessary files to /usr/local/bin
cd /opt
sh dk-1_5_0-linux-i586.bin
ln -s /opt/jdk1.5.0/bin/java /usr/local/bin/java
ln -s /opt/jdk1.5.0/bin/javac /usr/local/bin/javac
ln -s /opt/jdk1.5.0/bin/javadoc /usr/local/bin/javadoc

This seems to be the simplest method of installing java that lets you
cleanly uninstall it later.

It may help some the GLI in some cases to have JAVA_HOME defined before
running gli.sh.

export JAVA_HOME=/opt/jdk1.5.0

Regards
Edward


On Fri, 2006-05-26 at 14:28 +1200, John R. McPherson wrote:
> On Thu, May 25, 2006 at 09:43:02AM -0500, Beth Nicol wrote:
>
> > -bash-3.00$ gli.sh
> > jdk-1_5_0-linux-i586.bin
> > 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
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users