Run Java Axis Sample Code

Source code build files are located in the samples\drconfig\Axis\java\com\vmware\samples directory, as extracted from the ZIP archive.

Procedure

  1. Change directory to sdk/samples/drconfig/JAXWS, where the JAR files are located.
  2. When running the samples, if you are going to use your own certificates, then you must set the VMKEYSTORE environment variable to your Java keystore location. export VMKEYSTORE=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/lib/security/cacerts" or custom java keystore location and set VMKEYSTORE=C:\Program Files\Java\jdk1.8.0_202\jre\lib\security\cacert
  3. After building the sample program, you can call it with the run script. For example, if you are building the ConfigureSrm sample, you can call it using the following command:

    run.bat com.vmware.samples.drconfig.ConfigureAppliance configure --drconfigaddr https://FQDN_or_IP_Address:5480/configureserver/sdk --drconfiguser admin --pscuri pscfqdn:443 --pscuser [email protected]