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 1.4.2.08, 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 makegli.sh 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/GathererProg.java
$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar src/org/greenstone/gatherer/GathererApplet.java

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

# 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/Unzip.java

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:
Hi,
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?
Thanks
Renate

===============
[root@greenstone gli]# ./gli.sh

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(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at org.greenstone.gatherer.GathererProg.main(GathererProg.java:71)
Done!





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
email: rmorgenstern@unam.na
http://www.unam.na/ilrc/library/index.html





_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users