Readme for Java Samples
VMware vCenter Converter Standalone SDK Readme
Readme for C# (.NET) Samples
This document contains summary information about building and running the Java samples provided with the VMware vCenter Converter Standalone SDK.
|
Note: Information in this document may not be current. For up-to-date information, check these VMware Web sites: |
|
|
Building the Samples
Currently the Converter Standalone SDK includes a Java sample application that converts a physical machine to a virtual one, and several BATCH files for Windows environments. These BATCH files require setting several environment variables. Before using the sample you need to generate client-side proxy code.
If there is no Converter Standalone agent installed on the physical machine you want to convert, the sample automatically attempts to install it.
Prerequisites
- The target virtual machine must not exist on the vCenter Server you are logged in.
- On 64-bit platforms, you need to run
Build.cmd in a 32-bit command prompt. To start the 32-bit command prompt, run the %Windir%\SysWOW64\cmd.exe file.
To use the build script (build.bat )
- Set the environment variables as shown in the table.
Environmentvariable |
Description and usage notes |
Example setting |
AXISHOME |
Complete path to the Apache Axis installation top-level directory. Must be set prior to using the build.bat script. |
C:\apache\axis1.4 |
JAVAHOME | Path to the binary directory for the Java JDK. |
C:\jdk-1.7.0_51
|
NOTE If there are white spaces in the value of the LOCALCLASSPATH environment variable, running the Java sample might cause exceptions. Remove the white spaces from the value or set paths that do not have white spaces.
- Open the Windows command prompt or Linux shell.
- Navigate to the
SDK\samples\Axis\ sub-directory.
- In the command prompt, type
build .
Sample Applications
The Converter Standalone SDK package includes an Converter Standalone API Reference Guide that provides information about the available sample applications and helper classes. It is located in the SDK\doc\ReferenceGuide directory.
Sample |
Description, command-line syntax, and example... |
SubmitWinP2VJob |
Performs one or more Converter operations.
The sample takes properties files as input. A sample properties file is provided along with the sample (submitwinp2vjob.properties ). The properties file contains information about the operations to perform, the source, the destination, Converter Standalone server details, and the conversion job details.
Command line syntax:
set LOCALCLASSPATH=%CD%;%AXISHOME%\lib\;%AXISHOME%\lib\activation.jar;%AXISHOME%\lib\axis.jar;%AXISHOME%\lib\axis-ant.jar;%AXISHOME%\lib\commons-codec-1.3.jar;%AXISHOME%\lib\commons-discovery-0.2.jar;%AXISHOME%\lib\commons-httpclient-3.0.1.jar;%AXISHOME%\lib\commons-httpclient-3.0-rc2.jar;%AXISHOME%\lib\commons-logging-1.0.4.jar;%AXISHOME%\lib\commons-net-1.0.0-dev.jar;%AXISHOME%\lib\jaxrpc.jar;%AXISHOME%\lib\junit-3.8.1.jar;%AXISHOME%\lib\log4j-1.2.8.jar;%AXISHOME%\lib\mailapi.jar;%AXISHOME%\lib\saaj.jar;%AXISHOME%\lib\wsdl4j-1.5.1.jar;converter.jar
java -cp %LOCALCLASSPATH% SubmitWinP2VJob/Program <Converter server address> <Converter server user name> <Converter server password> <properties file> ...
Examples:
java -cp %LOCALCLASSPATH% SubmitWinP2VJob/Program 10.0.0.1 administrator password submitwinp2vjob.properties
|
VMware Resources
Copyright © 1998-2024 VMware, Inc. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. VMware products are covered by one or more patents listed at https://www.vmware.com/go/patents.
|