LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Failing to install Java Runtime Environment (https://www.linuxquestions.org/questions/linux-newbie-8/failing-to-install-java-runtime-environment-4175505957/)

RamziDymond 05-24-2014 06:18 AM

Failing to install Java Runtime Environment
 
I followed the instructions on this page http://www.wikihow.com/Install-Oracl...n-Ubuntu-Linux and got to step 14: paste /etc/profile in the terminal and got a bash, permission denied.I did step 17: java -version and the output on the terminal matched the image on the website. I have done this twice, the first time I failed to use sudo -s so I had to start again, but the same thing. I am trying to install Jre1.7.0_55 on Ubuntu 14.0.4 64bit

knudfl 05-24-2014 06:51 AM

Welcome to LQ.

You have found one of the worst methods ...
http://www.wikihow.com/Install-Oracl...n-Ubuntu-Linux
* No reason to remove openjdk : You can have as many java versions
as you want, installed at the same time.
( There is a "change version command" in Ubuntu :
$ sudo update-alternatives --config java ).
* Etc. etc. rubbish in that instruction.
( Do not believe everything written on the Internet ).

The easy way :
Google .. java7 ubuntu 14.04 ..
The first hit http://www.enqlu.com/2014/03/how-to-...8-jdk-and.html

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

.. and you can immediately type $ java -version
.. and get the reply "Java(TM) SE ...
.... 1.7.0_55-b13 ..."

-

RamziDymond 05-26-2014 09:47 AM

Problem solved
 
I clicked the link, pasted the commands, went to java verify and allowed java to run, bingo I have the recommended java installed.

Clear, simple, and on the money.

Thanks


All times are GMT -5. The time now is 02:22 PM.