Thanks for pointing out these problems -- we hadn't tried the GLI with Java
1.5.0. It turns out there are quite a few issues, which we'll fix for the next
release (you'll be able to get the updated source files from CVS as usual):
- The "enum" variable problem in gui/metaaudit/Filter.java is easy to fix (as
you point out).
- The util/ApplyXSLT.java file can be deleted -- it is a stand-alone program
used for generating the HTML help files, and probably shouldn't be in the
distributions at all.
- There are a lot of warnings about using the deprecated show() and hide()
functions. It most cases these can be changed to setVisible(true) and
setVisible(false), respectively. The show() function in gui/GComboBox.java is a
bit trickier and I'm still looking at how to best fix this.
- The makegli.sh (and presumably makegli.bat) scripts think (incorrectly) that
Java 1.5.0 is too old to compile the GLI.
- There are a lot of notes about using "unchecked or unsafe operations". We
need to look into these.
Once you've got the GLI compiling, there is at least one functional problem
too: modal dialog boxes don't close correctly. This unfortunately means the GLI
effectively crashes, making it practically unusable.
Our recommendation to GLI users: use a version of Java between 1.4.0 and 1.4.2
(inclusive) for Greenstone v2.52. For the next release of Greenstone we'll have
all these issues tidied up, and you'll be able to use the new Java 1.5.0.
All the best,
Emanuel Dejanu / Simple Words wrote:
> I can not compile the GLI with JDK 1.5.
> The problem is with "enum" variabile that is now a keyword.
> Rename enum to _enum in
> srcorggreenstonegathererguimetaauditFilter.java solve this problem.
> But I still get this error:
> src/org/greenstone/gatherer/util/ApplyXSLT.java:59: package
> org.apache.xalan.processor does not exist
> t_factory =
> and lots of notes:
> Note: src/org/greenstone/gatherer/checklist/CheckList.java uses unchecked or
> unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Best regards,
> Emanuel Dejanu
> greenstone-devel mailing list