1 - Add the “WEBUPD8″ PPA :
hadoop@master:~$ sudo add-apt-repository ppa:webupd8team/java
2 - Update the repositories :
hadoop@master:~$ sudo apt-get update
3 - Begin the installation :
hadoop@master:~$ sudo apt-get install oracle-java7-installer
Now, to test if the installation was ok or not do this :
hadoop@master:~$ java -version
If everything was ok you must be able to see something like this on your terminal :
hadoop@master:~$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
hadoop@master:~$
No comments:
Post a Comment