Each WSO2 product is a Java application. Therefore, in order to install them, it is necessary to install Java Development Kit first and then set the environment variables.
Info | ||
---|---|---|
| ||
Refer to Installation Prerequisites for the full list of applications necessary to install and work with the WSO2 product you plan to use. |
...
1. Execute the following command:
Code Block |
---|
java -version |
The system displays information on the currently installed Java applications.
...
Code Block |
---|
sudo add-apt-repository ppa:sun-java-community-team/sun-java6 |
2. Execute the following commands to update the repository and install JDK:
...
Code Block |
---|
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2 |
5. Choose which version of JDK to use:
...
For example, to use the sun-jdk
, choose "3" and press "Enter."
6. Check the installed and configured JDK by typing following command:
...
The output will show you the version of the JDK installed in your system.
7. Add JAVA_HOME
to your PATH
:
...
Info |
---|
After the Java Development Kit (JDK) is installed, check that the JAVA_HOME environment variable has been set correctly. This is necessary for the installation of WSO2 products. |
Excerpt | ||
---|---|---|
| ||
WSO2 API Manager, Install JDK on Linux |