Build JAVA AXIS Sample Code
The build scripts (build.bat or build.sh) generate Site Recovery Manager Appliance Management API Java stubs from the Site Recovery Manager Appliance Management API WSDL, compile the generated stubs, and compile the sample programs.
Procedure
- Make sure that the Java development kit and Apache Axis2 are installed and functioning.
- Start the Linux terminal (shell) or Windows command prompt.
- Set the environment variables
as shown in the Java and Axis environment variables table.
Table 1. Java and Axis Environment Variables Environment Variable Description and Usage Notes Example Setting AXIS2_HOME Complete path to the Apache Axis2 installation top-level directory. Must be set prior to using the build.bat script. C:\apache\axis2-1.7.9 JAVAHOME Path to the binary directory for the Java JDK. C:\Program Files\Java\jdk1.8.0_202 - Change directory to sdk/samples/drconfig/Axis/java and run the build.sh script (or on Windows, the build.bat file) to compile the sample Java code into a class files.