Set Up for Java
Development
You must set up
your Java development environment to create extensions to the Service Layer.
You might already have the
Java platform installed on your development machine. To check the version of
your Java installation, open a command prompt and enter
java
-version
.
- From the Oracle Web site at http://www.oracle.com/technetwork/java/javase/downloads/index.html, download the Java SE Development Kit installer.For developing HTML plug-ins, download JDK 1.8.x.Download the 64-bit version of the JDK installer if you need to allocate more memory.
- Install the JDK following the instructions of Oracle for the operating system of your development machine.
- Specify the location of the JDK.Operating SystemJava LocationWindowsUse theJAVA_HOMEenvironment variable to specify the location of the JDK. For example, set the environment variable toC:\Program Files\Java\jdk1.8.0_10.Mac OSOpen the Terminal application and enter the following command:echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile. In case you have more than one Java Development Kits installed, you can specify only the version you want by using a command like the following:echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.8.0_17)" >> ~/.bash_profile.
Set the Java compiler
compliance level to Java 1.7 in your automation build scripts or in Eclipse, so
that your plug-in will generate code compatible with older versions of vCenter
Server .