Sunday, 28 April 2013

[HOW TO] Install Java on Ubuntu 12.04 LTS

[HOW TO] Install Java on Ubuntu 12.04 LTS

mdkwlan mdkwlan·16 videos
133
9,134
Like     Dislike 1
Published on Nov 17, 2012
Hey, everyone. My name is MDK. The video should be self-explanatory. If you have any Linux related problems feel free to leave a comment saying so or check out the subreddit at /r/Linux4noobs.
Take care.
Edit: This will download the most up-to-date version of java. For example as of 01/9/2013 it will download 7u10. Enjoy! -MDK

[The commands used.]
If you find any error messages from add-apt-repository please issue this command.
sudo apt-get install python-software-properties

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

Once completed issue this command to make sure that Java was installed properly.
java -version.

Thanks have a good one.

How to make this for for chrome.
http://www.wikihow.com/Enable-Oracle-...

Issue the following commands. Type/Copy/Paste: sudo -s this will change you into root

Type/Copy/Paste: mkdir -p /opt/google/chrome/plugins this will create a directory called /opt/google/chrome/plugins


Type/Paste/Copy: cd /opt/google/chrome/plugins this will change you into the google chrome plugins directory,make sure you are in this directory before you make the symbolic link

Type/Paste/Copy: ln -s /usr/local/java/jre1.7.0_10/lib/i386/lib­npjp2.so this will create a symbolic link from the Java JRE( Java Runtime Environment ) plugin libnpjp2.so to your Google Chrome web browser

Uploader Comments (mdkwlan)

  • JoeHOT200
    "Command java not found".
    i did EXACTLY what it said to do
    ·
  • mdkwlan
    Then it wasn't installed properly. You missed something. Redo it.
    Do " sudo apt-get purge oracle-java7-installer "
    Then try installing it again.
    · in reply to JoeHOT200
  • Daniel Roach
    I am following what you say but I keep getting a command that say try apt-get -f...what does that mean
    ·
  • mdkwlan
    Means that it won't download unless -f is used which is force. Meaning something is off with it. Do you have the Ubuntu restricted extra's installed?
    That comes with Java and could be the reason why you're getting that error.
    · in reply to Daniel Roach
  • Gino Faustin Adefuin
    do i still need to install graphics driver for ubuntu 12.04? thanks
    ·
  • mdkwlan
    Unless you want to use the defaults. I mean they're fine if you're using an install based computer and don't have like an Nvida card or an AMD card.
    · in reply to Gino Faustin Adefuin

All Comments (77)

Sign in now to post a comment!

0 comments:

Post a Comment