Java Installation

From Persabiki
Jump to: navigation, search

The JDK, primarily the JRE is used by any Java based applications.


1) Download the latest Java SE (not JRE) from Remember that if you downloaded the 64-bit version of Mythbuntu, then you need the the x64 Linux version.

2) Extract archive

tar -xzvf jdk-7u4-linux-x64.tar.gz

3) Move extracted folder to /usr/local/

4) Change to /usr/local directory

5) Create a symlink $ sudo ln -s jdk1.7.0_04/ jdk

6) Change back to home directory

7) Edit ~.profile and add the following

export JAVA_HOME=/usr/local/jdk
export PATH=$PATH:$JAVA_HOME/bin

8) Run the following to run the .profile

. .profile

9) Now run the following to verify your installation

java -version