Java Samples
You can find the sample implementations for the Java interface at the following path:
Windows | UNIX | Android | Linux ARM | MAC |
---|---|---|---|---|
<installdir>\10.x\Samples\Java-Jna |
<installdir>/10.x/samples/java-jna |
<installdir>/10.x/samples/java-jna | <installdir>/10.x/samples/java-jna | <installdir>/10.x/samples/java-jna |
NOTE Samples for the Lease mode are available with SCL Add-on Package for Sentinel RMS SDK.
Building Samples
1.Depending on the operating system, navigate to the path mentioned in the above table.
2.Set the JDK environment variable to the path of the JDK directory.
3.Execute the following command:
•Windows: build_sample.bat.
•UNIX, Android: ./build_sample.sh
•Linux ARM:
–32-bit (soft float): ./build_sample.sh softfloat
–32-bit (hard float): ./build_sample.sh
–64-bit: ./build_sample.sh
•MAC: ./build_sample.sh
License Codes for Using Samples
To evaluate the Unified API samples, generate a network license for the following feature:
>Addition 1
NOTE To checkout a commuter license, a license with feature (Addition, 1) should be available with the License Manager.
Executing Samples
Use the following command to run the Java sample:
java -jar sntl_demo.jar
java -jar sntl_tool.jar <Command> [Filename] <Option> [value]
java -jar sntl_revoke.jar
java -jar sntl_lmadmin.jar
java -jar sntl_lspmgmtinit.jar
java -jar sntl_lspmgmtclean.jar <Option>
Building Samples in a Non-Default Installation Path
If you are building samples in a location different from the default (<installdir>\<SDKversion>\Samples\Java-Jna), make sure that the required shared libraries are present in the current directory. The table below provides a list of the required shared libraries:
Platform | Java Runtime Environment | Shared Library |
---|---|---|
Windows | 32-bit | lsapiw32, lsdcod32, lslmadmin32, lspmgmtinit32, and lspmgmtclean32 |
UNIX | 32-bit | liblssrv, libdecod, liblslmadmin, liblspmgmtinit, and liblspmgmtclean |
Linux ARM | 32-bit (Hard Float) | liblssrv, libdecod, liblslmadmin, liblspmgmtinit, and liblspmgmtclean |
Linux ARM | 32-bit (Soft Float) | liblssrv, libdecod, liblslmadmin, liblspmgmtinit, and liblspmgmtclean |
Windows | 64-bit | lsapiw64, lsdcod64, lslmadmin64, lspmgmtinit64, and lspmgmtclean64 |
UNIX | 64-bit | liblssrv64, libdecod64, liblslmadmin64, liblspmgmtinit64, and liblspmgmtclean64 |
Android | 64-bit | liblssrv64, libdecod64, liblspmgmtinit64, and liblspmgmtclean64 |
Linux ARM | 64-bit | liblssrv64, libdecod64, liblslmadmin64, liblspmgmtinit64, and liblspmgmtclean64 |
MAC | 64-bit | liblssrv64, libdecod64, liblslmadmin64, liblspmgmtinit64, and liblspmgmtclean64 |