Log in
updated 11:29 AM UTC, May 4, 2016

How to install Java/JDK 7 on Ubuntu 12.10 or 13.04

Use the below command to install Jre and JDK on Ubuntu 12.10 or 13.04 :

First, Install JRE:

sudo apt-get install openjdk-7-jre

Now, Install JDK:

sudo apt-get install openjdk-7-jdk

Advantage of installing this way is all the path variables are already updated.

Now type in command to test if java/javac is installed:

try these commands:

java -version

You should get output something like this:

java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1)
OpenJDK Client VM (build 23.7-b01, mixed mode, sharing)

That's it.


Powered by Bullraider.com
Follow Us on Twitter
Find Us on Facebook
Follow Us on Google
Follow Us on Pinterest