0

this is my first time using linux ubuntu. I'm trying to install java, i downloaded the file from the java website, extracted the file to the desktop and the extracted file's name now is jre1.7.0_45

i'm following this to install the java http://www.wikihow.com/Install-Java-on-Ubuntu

but omg i can't even get past number 2. i get

Reading package lists... Done
Building dependency tree
E: Unable to locate package openjdk-7-jre

how can i do this please?

Alisha
  • 3,551
  • 2
  • 15
  • 8

1 Answers1

1

To add a PPA and install(and recieve updates) the latest Oracle Java 7 in Ubuntu (supports Ubuntu 13.10, 13.04, 12.10, 12.04 and 10.04) use the commands below:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Source http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

xangua
  • 7,277