Re: [greenstone-users] Update problems with Greenstone 2.74

From Oran Fry
DateThu, 16 Aug 2007 11:27:53 +1200
Subject Re: [greenstone-users] Update problems with Greenstone 2.74
In-Reply-To (E1ILRAE-0003vP-Uh-zombie-scms-waikato-ac-nz)
Hi Renate,

GLI 2.74 was compiled with the java, so it makes sense that it did not run under your java 1.4.2_05. However, it's strange that you still run into problems after recompiling.

But I had a look around, and lo and behold, the script only seems to only compile a few of the classes, not all of them:

# Compile the GLI
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar src/org/greenstone/gatherer/
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar src/org/greenstone/gatherer/

# Compile the GEMS
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar src/org/greenstone/gatherer/gems/

# Compile the standalone programs needed on the server for remote building
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/ src/org/greenstone/gatherer/remote/Zip*.java
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/ src/org/greenstone/gatherer/remote/

So I devised this command to let the compiler loose on ALL the class files:
( Make sure javac on your path and properly working before running this one. Run it from the gli directory. )

find src -name '*.java' -exec javac -deprecation -d classes -sourcepath src -classpath classes/:lib/apache.jar:lib/qfslib.jar {} ;

Run this and try again. I have tested it and I got some warnings but no errors. If it doesn't fix the problem, write back and we will offer more advice.

Kind Regards,
Oran Fry.

Renate Morgenstern wrote:
I have updated my Greenstone installation on our Linux server with version 2.74.
The message is that it was installed successfully, however, if I want to the GLI it does not start.
I ran clean and recompiled the gli but it does not solve the problem.
See below for the error message:
What should I do?

[root@greenstone gli]# ./

Greenstone Librarian Interface (GLI)
Copyright (C) 2006, 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: /var/www/gsdl
Checking Perl: /usr/bin/perl
Checking Java: /usr/java/j2sdk1.4.2_05/bin/java

Running the Greenstone Librarian Interface...
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/greenstone/gatherer/gui/URLField (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
        at org.greenstone.gatherer.GathererProg.main(

Mrs. Renate Morgenstern
University of Namibia Library
Head: Technical Services and Systems
Private Bag 13301, Windhoek, Namibia
Tel: +264 61 2063869; Fax: +264 61 242124

_______________________________________________ greenstone-users mailing list