...
Code Block |
---|
sudo sh ./jdk-6u25-linux-i586-rpm.bin |
4. Execute the following command to add installed JDK to alternatives:
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:
...
Code Block |
---|
export JAVA_HOME=/usr/java/jdk1.6.0_25 |
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. |
...