Re: [greenstone-devel] modifying the gli applet]

From Katherine Don
DateThu, 23 Nov 2006 09:28:31 +1300
Subject Re: [greenstone-devel] modifying the gli applet]
In-Reply-To (4562ACCC-6000200-inwind-it)
Hi Ruben

Have you got a jar folder in your gli directory? does it contain folders?
You could try deleting the jar folder and running makejar.sh again.
Does it complete successfully? Did you end up with a jar folder
containing folders org, de and com? and a GLI.jar?

The jarsigner bit is failing because the GLI.jar file hasn't been created.

Regards,
Katherine

ruben pandolfi wrote:
>
> Katherine Don ha scritto:
>
>> Hi Ruben
>>
>> To recompile GLI, run makegli.sh/bat in the greenstone/gli directory.
>> Then create the jar file by running makejar.sh/bat.
>> Then follow the second 1-3 instructions on
>> http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/west-yorkshire/remote-greenstone.html
>>
>> about creating the signed applet (which you would have done before to
>> get the applet working in the first place).
>>
>> Cheers,
>> Katherine
>
>
> Thank You Katherine,
>
> I did it and everything worked OK on my local Ubuntu, but fails on
> remote Fedora:
>
> ./makegli.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 Javac: /usr/java/jdk1.5.0_02/bin/javac
>
> Removing the Greenstone Librarian Interface class files...
> Done!
>
> Compiling the Greenstone Librarian Interface...
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Note: src/org/greenstone/gatherer/gems/GEMS.java uses unchecked or
> unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Done!
>
> ..................................................
>
> but:
>
>
> [morin@www02 gli]$ ./makejar.sh
> Assuming that Java code is freshly compiled...
> com: No such file or directory
> Error adding com (in directory jar) to jar archive!
>
>
> ..................................................
>
> and
>
> keytool -genkey -alias privateKey -keystore appletstore -storepass
> greenstone
> keytool error: java.lang.Exception: Key pair not generated, alias
> <privateKey> already exists
>
> [morin@www02 gli]$ jarsigner -keystore appletstore -signedjar
> SignedGatherer.jar GLI.jar privateKey
> Enter Passphrase for keystore: greenstone
> jarsigner: unable to open jar file: GLI.jar
>
>
>
> ..................................................
>
>
> so I could not generate SignedGatherer.jar ...
>
> Looks like the applet is still working but no changes took place.
>
> Any Ideas?
>
> Thank you
>
> Ruben
>
> ..................................................
>
> java -version
> java version "1.5.0_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
> Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
> [morin@www02 gli]$ uname -a
> Linux 2.6.11-1.27_FC3 #1 Tue May 17 20:27:37 EDT 2005 i686 i686 i386
> GNU/Linux
>
>
>
>
>
>
>
>
>
>