Griaule Biometrics

Home » Fingerprint SDK 2009 Developer's Manual » Using the SDK » Fingerprint SDK Java Prerequisites » Applet Prerequisites

Applet Prerequisites

In order to make it easier to met the second and third requisites, the Fingerprint SDK also contains a helper, the GrFingerAppletInstaller class, that has methods to perform all the necessary operations: unpacking ZIP files, copying files to the filesystem, initializing GrFinger, removing the copied files.

The ZIP package and license file must be located in the root folder of the JAR archive.

The GrFingerAppletInstaller class handles two resources: a ZIP file (containing the libraries) and a license file.

Using the methods provided by the class, copying the files and creating a GrFinger object is straightforward:

	// Create the installer
	GrFingerAppletInstaller installer = new GrFingerAppletInstaller("","libraries.zip");
	// Install libraries
	installer.copyAndExtractZip();
	// Install license
	installer.copyLicense("mylicense.txt");
	// Create GrFinger object
	GrFinger grFinger = installer.getGrFinger();

Finalizing GrFinger and removing the copied files using the methods provided by the GrFingerAppletInstaller class is also straightforward:

	// Finalize GrFinger library
	grFinger.finalize();
	// Finalize installer, removing copied files
	installer.finalize();