This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Installing Java Development Kit (JDK) on Windows
In order to install WSO2 products from both binary and source distributions, it is necessary to install Java Development Kit (JDK) first. This page contains instructions for installing the JDK for Windows.
Note
Also refer to the Installation Prerequisites page for the list of all applications necessary to install and work with the product, and links to them.
Check if JDK is Already Installed
If you are not sure whether you have JDK installed, please confirm it by doing the following:
- Run a complete directory search (using the "All File and Folders" option if available) on your drives for the occurrence of "jdk" in the file name.
- If your results retrieve a folder with the name "jdk" immediately followed by a series of version numbers (for example, jdk1.6.0_27), then your JDK is installed. You should ensure that the installation files in this folder are intact. If you are unsure of this, re-installation of the JDK is recommended. Otherwise, set your JAVA_HOME environment variable correctly. Refer to section Installing on Windows from Binary Distribution for instructions on setting the JAVA_HOME.
- If you do not retrieve a result like this, then it is possible that your JDK has not been installed.
Follow the instructions below to install Java Development Kit.
Step 1. Download Java Development Kit (JDK)
1. Open a Web browser and access the following URL:
http://java.sun.com/javase/downloads/index.jsp
2. The link opens Oracle Java download page.
3. From the "Java platfrom (JDK)" versions available, select the latest version that is compatible with WSO2 products platform. (The latest compatible version at the moment is JDK 6).
4. It is necessary to read and accept the license agreement for downloading JDK.
5. Choose the JDK installation pack for Microsoft Windows compatible with your system.
For example, jdk-6u25-windows-i586.exe.
6. Save the file.
Step 2. Install Java Development Kit (JDK)
1. Once downloading is complete, launch the downloaded .exe file.
2. If a warning message is displayed, click "OK" to execute the file.
3. Another security warning on potential risks of running an .exe file may be displayed. Click "Run".
4. Installation Wizard window opens. Click the "Next" button.
5. The next window shows optional features to select while installing the program. It also allows to chang the installation directory, in case the user wants to install JDK to a special location. Unless user has a requirement to use these optional features, it is recommended to leave them as default.
Click the "Next" button.
 6. The installation process starts.
7. The user will be asked to chose the destination folder. Provide the destination location or use the default value and click the "Next" button.
 8. Once the installation is complete, a notification is displayed mentioning that JDK is successfully installed. Click "Finish" to finalize the installation.
JAVA_HOME Variable Set-up Needed
After the Java Development Kit (JDK) is installed, check that the JAVA_HOME environment variable is set correctly. This is necessary for the installation of all WSO2 products.
Â