Jump to content

  •  

Photo
- - - - -

How to Install Java 7 JDK on Ubuntu

Debian Ubuntu

  • Please log in to reply
No replies to this topic

#1 Wilson18

Wilson18

    Administrator

  • root
  • 112 posts
  • LocationUniversity of Birmingham

Posted 25 May 2014 - 07:24 PM

Installing the Java JDK on Ubuntu

In this tutorial, I will be showing you can install the Java JDK on Ubuntu via the terminal. This should work on all versions of Ubuntu and any Debian based operating system. The first thing you will need to do is open the Terminal and switch to the root user. This will just save time and mean you dont have to keep sudo'ing.

post-1-0-53638000-1412790448.png

Once you have the terminal open, type in the command below and then your password.

sudo su

You should now be able to run the following commands without the need to sudo. Next, you must make sure everything is up to date. you can do so by typing

apt-get update; apt-get upgrade

post-1-0-75018400-1412790737.png

Once everything has updated, you can now install the JDK.

apt-get install default-jdk

post-1-0-34921500-1412790919.png

You can test to make sure the JDK has been installed by typing in javac in to the terminal.

post-1-0-14319000-1412791125.png


  • Rolandcalm likes this

List what you read?

Check me out on: YouTube, Twitter, Facebook, Google+






Also tagged with one or more of these keywords: Debian, Ubuntu