Deploy Eduction SDK > Java API Component > Build the Sample1 Class

Build the Sample1 Class
The Sample1 class is used to validate that the Eduction SDK runs correctly.
To build and run this sample on UNIX
1.
2.
Copy a valid Eduction OEM license key to the test subdirectory as the file licensekey.dat.
3.
To compile Sample1, run the following command:
>javac -cp bin/edk.jar src/com/autonomy/eduction/test/Sample1.java -d bin
4.
To ensure that edkjni.so can be found, run the following command:
>setenv LD_LIBRARY_PATH bin:$LD_LIBRARY_PATH
5.
To run Sample1, run the following command:
>java -cp bin/edk.jar:bin com.autonomy.eduction.test.Sample1 grammar/company_eng.ecr company/name/eng test/data.txt test/licensekey.dat
To build and run this sample on Windows
1.
2.
Copy a valid Eduction OEM license key to the test subdirectory as the file licensekey.dat.
3.
To compile Sample1, run the following command:
C:\SDK>javac -cp bin\edk.jar src\com\autonomy\eduction\test\Sample1.java -d bin
4.
To ensure that edkjni.dll can be found, run the following command:
C:\SDK>set path=%path%;bin
5.
To run Sample1, run the following command:
C:\SDK>java -cp bin\edk.jar;bin com.autonomy.eduction.test.Sample1 grammar\company_eng.ecr company/name/eng test\data.txt test\licensekey.dat