Installing Java on Ubuntu Manually
Steps to follow:
1. Download jdk. I downloaded java7 from oracle's website.
2. Unzip and copy the folder into /usr/lib/jvm
Make directory jvm if it doesn't exist. I renamed the folder to java-7-oracle
3. Open /etc/environment and add this line
JAVA_HOME=/usr/lib/jvm/java-7-oracle
PATH=$PATH:$JAVA_HOME/bin
4. Then execute this command
source /etc/environment
5. On terminal type java -version to check if it shows the right version
1. Download jdk. I downloaded java7 from oracle's website.
2. Unzip and copy the folder into /usr/lib/jvm
Make directory jvm if it doesn't exist. I renamed the folder to java-7-oracle
3. Open /etc/environment and add this line
JAVA_HOME=/usr/lib/jvm/java-7-oracle
PATH=$PATH:$JAVA_HOME/bin
4. Then execute this command
source /etc/environment
5. On terminal type java -version to check if it shows the right version
Comments
Post a Comment