Set Up Your System to Use the Java Samples
Each subdirectory in installation_location/sdk/java contains the following files.
- build.bat
- Builds the individual sample on Windows.
- run.bat
- Runs the individual sample on Windows.
- build.sh
- Builds the individual sample on UNIX or Linux.
- run.sh
- Runs the individual sample on UNIX or Linux.
In addition, the installation_location/sdk/java directory contains the following files.
- build-samples.bat
- Builds all the Java samples on Windows.
- build-samples.sh
- Builds all the Java samples on UNIX or Linux.
Before you modify any of the samples, we recommend that you become familiar with basic Java programming techniques.
Before you use these Java samples, you should identify whether you have Anonymous access enabled. Although the samples will work with anonymous access, security features will not be demonstrated if anonymous access is enabled. To use the security features of the samples, ensure that you have a secured NTLM, LDAP, or other namespace, and that you disable anonymous access.
Because some of the Java samples issue output to the command console, ensure that the console is visible when you run the samples.