Re: [greenstone-users] GLI and Java

From Michael Dewsnip
DateWed, 26 May 2004 10:57:35 +1200
Subject Re: [greenstone-users] GLI and Java
In-Reply-To (p06100513bcd91998a54a-172-16-1-51)
Hi Rich,

The makegli.sh script has a simple test which attempts to check that the version of javac is suitable. This works
most of the time, but has unfortunately failed on your system (what type of Unix and shell are you using?).

The easiest solution right now is just to disable the test. You'll need to edit the makegli.sh file again, and
change this line
javacOK=`$javacpath -target 1.4 2>&1`

to
javacOK=""

However, it would be great if you could help me determine why it doesn't work on your system, so we can hopefully
fix it for the future. If you've got a spare few minutes, e-mail me off list and I'll tell you what I'd like you
to do.

All the best,

Michael

Rich Robinson wrote:

> This worked in terms of the program finding Java, however, now it tells me:
>
> "The version of the Java Development Kit you have installed is too old
> to compile the Greenstone Librarian Interface. Please install a new
> version of the Java SDK (version 1.4 or newer) and rerun this script."
>
> Running "which javac" gives:
> /usr/java/j2sdk1.4.1_01/bin/javac
>
> Looks like version 1.4.1, so....why would it be "too old"?
>
> Rich
>
> >Hi Rich,
> >
> >What happens if you type "which javac" -- do you get
> >/usr/java/j2sdk1.4.1_01/bin? If not, check that Java is
> >actually installed in this location.
> >
> >One way of fixing this problem is to edit the makegli.sh file and
> >specify the path of your Java SDK. Find the
> >lines
> >
> > ## ---- Check Javac exists ----
> > javacpath=
> >
> >and enter the path of the javac executable:
> >
> > ## ---- Check Javac exists ----
> > javacpath=/usr/java/j2sdk1.4.1_01/bin
> >
> >Then save and try again.
> >
> >Regards,
> >
> >Michael
> >
> >
> >
> >Rich Robinson wrote:
> >
> >> Hi,
> >>
> >> I've successfully installed Greenstone on a UNIX system. Now to
> >> enable the Greenstone Librarian Interface, I've attempted to run sh
> >> makegli.sh. I get this error:
> >>
> >> Failed to locate an appropriate version of Javac. You must install a
> >> Java Development Kit (version 1.4 or greater) before compiling the
> >> Greenstone Librarian Interface.
> >>
> >> However, if I type
> >> echo $PATH
> >> I get this:
> >>
> >>/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.1_01/bin:/usr/local/ant/bin:/home/lausanne/bin
> >>
> >> Doesn't this indicate that the Java Development Kit is already on my
> >> machine and should be found? Appreciate any help -
> >>
> >> Rich Robinson
> >>
> >> _______________________________________________
> >> greenstone-users mailing list
> >> greenstone-users@list.scms.waikato.ac.nz
> >> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users