A very basic sample to connect to vSphere print the server time, the session id, and exit
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.




To run this sample you will need at least JAVA 1.6


./gradlew fatJar

The above command will build a jar file that contains all of the dependencies needed to run the sample. If you are on Windows use the gradlew.bat file


java -jar build/libs/hello_world_yavijava-1.0.jar administrator@vsphere.local password

This will execute the sample. It will use administrator@vsphere.local as the username, password as the password, it will connect to the host and print the server time, the session id, the vsphere version, and then log off. The connection info above is an example. Please use valid values for your environment.