LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2014, 07:18 AM   #1
RamziDymond
LQ Newbie
 
Registered: May 2014
Location: Northern California Coast, Fort Bragg USA
Distribution: Ubuntu 14.04
Posts: 6

Rep: Reputation: Disabled
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
 
Old 05-24-2014, 07:51 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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 ..."

-

Last edited by knudfl; 05-24-2014 at 07:52 AM.
 
1 members found this post helpful.
Old 05-26-2014, 10:47 AM   #3
RamziDymond
LQ Newbie
 
Registered: May 2014
Location: Northern California Coast, Fort Bragg USA
Distribution: Ubuntu 14.04
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install Java Runtime Environment (JRE) in Ubuntu LXer Syndicated Linux News 0 04-20-2007 01:33 AM
Can't install Java Runtime Environment pwnd Linux - Newbie 21 06-21-2006 01:12 AM
Compile, Install Java Runtime Environment without X-Windows redthor Linux - Software 1 12-11-2005 06:50 PM
FC1 Java Runtime Environment Install XsuX Linux - Newbie 3 10-15-2004 01:50 PM
How to install Java Runtime Environment in Mozilla ? wlaw Linux - Software 2 09-23-2004 12:42 PM


All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration