How do I install Java and also in my browser so websites with Java work?
|
Installing OpenJDK is not enough for enabling Java in browsers. You'll also need to install the A restart of the browser might be required. |
||||
|
|
|
There are several implementations of Java, the 3 most common implementations when talking about it for Ubuntu are:
Since Ubuntu 11.10 and due to license issues Ubuntu will no longer distribute Oracle's JDK and JRE. Also previous versions supplied on PPAs suffer from security issues are are not recommended to be installed on any Ubuntu system. There are no more supported .deb releases from Ubuntu with reference to Sun Java or Oracle Java, Ubuntu officially supports OpenJDK and OpenJRE implementation of Java which is the base for Oracle's own implementation. OpenJRE is the official implementation of Java Runtime Environment for your Ubuntu systems and should suffice to run any Java program that you might require and its included in the main repo and its easily installable. OpenJREOr by opening a terminal and typing
The Also important is to install the wrapper for supporting Java applications on your web browser Iced-Tea Java Plugin. IcedTea Pluginor via a terminal
Or look for To make sure that you are running the correct version of Java use this command to set your choice
If you need to install OpenJDK-JRE6 or OpenJDK-JDK6
Install it with
Or if you need the developers package
A version of the Install it with
If you really want to use Oracle's Java Se Platform |
||||
|
|
|
For installing Oracle Java 7:
|
||||
|
|
|
Installing OpenJDK - Recommended The simplest way to install Java on Ubuntu is to use OpenJDK. This will work fine for most people. To install it, click on the small button with the Ubuntu logo on it, as shown in the screenshot below.
After opening the Dash Home, you need to type in Terminal. Click on the icon that is circled in the screenshot below.
This will open the Terminal, which is Ubuntu's version the the Windows Command prompt, though the Terminal has many more features. Now, copy and paste the following command into the Terminal window. You will need to use ControlShiftV to paste text into the terminal.
You will need to enter your password to use this command. Although it will not show up in the Terminal, it will still be entered when you type it. After running this command, you will be set up to run and develop Java applications. Installing Oracle Java OpenJDK works fine for most people, but if you play Minecraft, you will want to use Oracle Java instead. To install Oracle Java, run the command below one at a time in the Terminal.
This will download Java from Oracle's website, and install it for you. |
||||
|
|
Open your terminal with Ctrl+Alt+T and:
|
|||||
|
|
Unfortunately, because of issues with its license, Oracle Java is no longer distributed within the official Ubuntu repositories. You have two main options: either try OpenJDK -- an open source replacement for Oracle Java -- or proceed with the "manual" installation (which is exactly what you were trying to do). Both these options are described on the help wiki: https://help.ubuntu.com/community/Java. This page also include some other alternatives that, depending on your needs, you may find more suitable. Just a side note: most of the time, with Ubuntu, you should not download software from the Internet, but rather use the Ubuntu Software Center. The software you'll find there is ensured to be stable, safe and to respect the standard conventions of the system. Oracle Java is just an exception to this rule. |
|||
|
|
|
Just go to Aplications --> Ubuntu software center and then search for |
|||||||||||
|
|
While I haven't found a good repo for openjdk7, i found an up to date repo for oracle jdk 7 http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html Would be nice to see one for openjdk7 |
|||
|
|
|
There are a few ways to install Java in Ubuntu: Install OpenJDK (The open source equivalent to Sun's Java) directly from Ubuntu Software Center. All you need to do is search for Java. That tends to work as is for me. If you need Sun's Java, say if you want to play Minecraft, you download the JRE as you described from Java.com, but make sure your .bin-file can be executed. You do that by opening a terminal and typing the following (I will assume you have it in your Downloads folder so change the cd line accordingly if that's not where it is):
Then, you should be able to close your terminal, right click on your .bin-file and select "Execute", which should run the installer. If this is not an option, just do the following from terminal (in the same folder as the two other actions):
That simply runs the specified file and if you successfully typed in the two first lines, the installation. |
||||
|
|
|
Wow! I had problems with this for a few days - and, even though i do like FLOSS/FOSS philosophy, there are just some things that run better. Java being an example (we'll leave out my other issue with Proprietary software/drivers LOL) I stumbled upon this today - thankfully - when i was in doubt as to if i should install open source, or Sun's java. And, i found this guide (VERY helpful, and just go to the link below in the description of the video!) This guy is very knowledgeable, and i had it installed in less than 5 minutes! I do have to say, that this is my 3rd time installing ubuntu, cause, i went back to 11.04 today, and did a dual boot - half of my TB drive to windows, the other to ubuntu xD = VERY HAPPY! lol. |
|||
|
|
There's an OpenJDK PPA and it seems they have packages for the 10.04 version: OpenJDK PPA |
|||||||
|
|
I'm not sure if there is a way to install by package but there is a way to install manually. Here is a very detailed (and perhaps easy) step-by-step on how to do it. |
|||||||||||||
|




sudo apt-get install icedtea-plugin– IgnitE Mar 2 at 14:15icedtea-pluginfor firefox. This has been answered in some other questions too, so I just added a comment here. – IgnitE Mar 2 at 21:48