Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

1. Execute the following command:

Code Block
java -version
Wiki Markup
!java-version.png|alt="Java Version"!

Java VersionImage Added

The system displays information on the currently installed Java applications.

...

!add-repository.png|alt="Add repository"!
Code Block
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
Wiki Markup

Add repositoryImage Added

2. Execute the following commands to update the repository and install JDK:

Code Block
sudo apt-get update
sudo apt-get install sun-java6-jdk
Wiki Markup
!install-jdk-on-Linux.png|alt="Install JDK on Linux"!

Install JDK on LinuxImage Added

3. The operation log will be displayed. The system automatically downloads necessary files from the web for installation. The system asks to confirm the installation process continuation. Type "Y", and press "Enter."

...

While selecting a packet to upload, choose the RPM.

Wiki Markup
!Java-SE-Development-Kit.png|alt="Download Java SDK"!

Download Java SDKImage Added

2. Start the remote SSH session in the GUI terminal window (Konsole in KDE, Gnome Terminal in Gnome, etc.) or open the Linux text console.

...

!JDK-install.png|alt="Install JDK"!
Code Block
sudo sh ./jdk-6u25-linux-i586-rpm.bin
Wiki Markup

Install JDKImage Added

4. Execute the following command to add installed JDK to alternatives:

!install-jdk-to-alternatives.png|alt="Install JDK to Alternatives"!
Code Block
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2
Wiki Markup

Install JDK to AlternativesImage Added

5. Choose which version of JDK to use:

...

For example, to use the sun-jdk, choose "3" and press "Enter."

Wiki Markup
!config-Java-alternatives.png|alt="configure Java"!

configure JavaImage Added

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.

Wiki Markup
!Java-version-configuration.png|alt="Java version"!

Java versionImage Added

7. Add JAVA_HOME to your PATH:

!export-Java-Home.png|alt="export to JAVA-HOME"!
Code Block
export JAVA_HOME=/usr/java/jdk1.6.0_25
Wiki Markup

export to JAVA-HOMEImage Added

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.

...