Set Up the Eclipse Integrated Development Environment (optional)

You can use an IDE of your choice to develop custom plug-ins for the
vSphere Client
.
  1. From the Eclipse Web site at http://www.eclipse.org/downloads/eclipse-packages/, download the Eclipse IDE for Java EE Developers package.
  2. Extract the contents of the downloaded file into an appropriate location on your development machine.
  3. If you do not have the minimum and maximum heap size automatically set up for Eclipse, edit the
    eclipse.ini
    file before you start Eclipse. You must add the location to the JDK you installed and increase the heap space and the maximum permanent space used by the JVM.
    You must add or edit the Eclipse initialization file to contain the following lines:
    -vm C:/<your JAVA_HOME directory>/bin/java.exe -Xmx1024m -XX:MaxPermSize=512m
  4. Start Eclipse and edit the Eclipse preferences to set up your workspace for developing plug-ins for the
    vSphere Client
    .
    1. Open the Preferences dialog.
      • On a Microsoft Windows platform, choose
        Window
        Preferences
        .
      • On a Macintosh platform, choose
        Eclipse
        Preferences
        .
      The Preferences dialog opens.
    2. From the General page, select the
      Show heap status
      option to display information about the current Java heap usage.
    3. From
      General
      Network Connections
      , configure the proxy settings to be used when opening a connection.
    4. From
      General
      Workspace
      , select the
      Build automatically
      and
      Refresh using native hooks or polling
      check boxes.
    5. From
      Java
      Code Style
      Formatter
      , configure your code and naming conventions.
    6. From
      Java
      Installed JREs
      , add the location of the JDK you installed. See Set Up for Java Development.
    7. From
      General
      Workspace
      Linked Resources
      , set the location of your SDK.
      Set the path to the
      html-client-sdk
      folder as a value of the
      VSPHERE_CLIENT_SDK
      path variable.
    8. From
      Java
      Build Path
      Classpath Variables
      , set the location of your SDK.
      Set the path to the
      html-client-sdk
      folder as a value of the
      VSPHERE_CLIENT_SDK
      classpath variable.