0

edit - the above link answered my question - it's up and running!. thanks Pilot6 and shadow.

I am a Linux newbie. I am trying to install the Oracle JDK 8 and NetBeans on my computer.

My internet connection is quite slow, so I have previously downloaded the tar.gz file from Oracle. However, being such a newbie, I'm already stuck.

The instructions tell me to locate it in a folder of my choice, then extract and install it by running tar. Is there a preferred location?
I attempted to create a /usr/java folder via the graphical interface, but I seem to require root access, and don't quite know hope that works.

Can anyone help?

3 Answers3

1

You can copy your downloaded file into

/var/cache/oracle-jdk8-installer/

Please make sure you have the correct file, at the moment of writing this would be jdk-8u77-linux-x64.tar.gz

The oracle-java8-installer should then recognize the file and not attempt to download it.

Chris
  • 31
  • 2
0

Run in terminal

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

This is the easiest way to install it. And you will get automatic updates.

Pilot6
  • 90,100
  • 91
  • 213
  • 324
0

Run these commands in terminal:

First you have to add oracle's repository where you can download java

sudo add-apt-repository ppa:webupd8team/java

And the you must update your local package list

sudo apt-get update

Then you can download the installer

sudo apt-get install oracle-java8-installer
shadoww
  • 16
  • As mentioned, due to very slow internet, I can't download it, I am trying to install a previously downloaded tar.gz file. I think the link to the previously answered question is going to be very helpful. Thanks. – itDontMeanAThing Mar 22 '16 at 13:37