» Just issue the below command to check the installed java versions. Is you had any problem installing the updated version, just remove all the installed java versions and try installing again. Oracle Java7 is installed on ubuntu 12.04. sudo apt-get install oracle-java7-installer Step 6 » That’s it, Now check the version java -version java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode) sudo update-java-alternatives -l java-7-oracle 1 /usr/lib/jvm/java-7-oracle add-apt-repository ppa:webupd8team/java Step 4 » update the repositories apt-get update Step 5 » Now install Oracle java7 by issuing the below command. sudo apt-get purge openjdk* Step 3 » Issue the below command to add webupd8 repository. Step 2 » Remove openjdk by typing the below command. The results shows openjdk is installed on your machine. Step 1 » Check the version of java package installed by issuing the below command sudo update-java-alternatives -l java-1.7.0-openjdk-i386 1051 /usr/lib/jvm/java-1.7.0-openjdk-i386 java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3) OpenJDK Client VM (build 20.0-b12, mixed mode, sharing) In this article, we can see how to install Oracle java 7 on ubuntu 12.04. By default ubuntu 12.04 comes with Openjdk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |