LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install Java on Ubuntu 8.10 (Intrepid Ibex) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-java-on-ubuntu-8-10-intrepid-ibex-688705/)

greengrocer 12-06-2008 02:10 AM

How to install Java on Ubuntu 8.10 (Intrepid Ibex)
 
Hey everyone,

I am trying to install Java onto Ubuntu 8.10 and it has me tearing my hair out now. I just cannot get it working, but have never had trouble with earlier version of Ubuntu.

I followed the instructions found at http://www.java.com/en/download/help...selfextracting

and no luck. The I tried the apt-get method:

Code:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Still no luck. Anybody got another method which works on Ubuntu 8.10?

Regards,
Greenie

megerdin 12-06-2008 04:42 AM

Quote:

I followed the instructions found at http://www.java.com/en/download/help...selfextracting
Download and install the rpm.bin package from there site. Its (rpm.bin) some easier.

then run this command from terminal

Code:

ln -s /usr/java/jre1.6.0_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/

dv502 12-06-2008 04:51 AM

You need to install the restricted-extras package. This includes the codecs to play most online content and it includes java.

MoonMind 12-07-2008 03:58 AM

In a nutshell, dv502 is right - but you can use Synaptic: Open it, go to the "Sources" menu (in "Settings") and put a check for all repositories on the first screen. After that, search for "jre" and install it with all dependencies.

M.

arizonagroovejet 12-07-2008 05:26 AM

Quote:

Originally Posted by greengrocer (Post 3366162)
Code:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Still no luck. Anybody got another method which works on Ubuntu 8.10?

What dv502 said but for future reference the above is not terribly useful. If you run a command and 'still no luck' then post the output of the command to show why it didn't work.

Duck2006 12-07-2008 07:29 AM

You can install java, by installing restricted extras in the terminal or from your Synaptic Package Manager

From the terminal

sudo aptitude install ubuntu-restricted-extras

Or open your Synaptic Package Manager and do a search for ubuntu restricted extras mark the pack and then click Apply

IndyGunFreak 12-07-2008 08:16 AM

Quote:

Originally Posted by megerdin (Post 3366230)
Download and install the rpm.bin package from there site. Its (rpm.bin) some easier.

then run this command from terminal

Code:

ln -s /usr/java/jre1.6.0_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/

Be nice if he was using an rpm based distribution, but since he's not thats not gonna work.

I've installed Java from the .bin file on java.com, and from the repositories, with no problem at all.... I generally only need it to use Frostwire.

Are you getting an error when you tried to run the apt-get command?

IGF

jay73 12-07-2008 08:51 AM

Quote:

Still no luck. Anybody got another method which works on Ubuntu 8.10?
If you already had an other java environment installed - any - then you still need to configure your newer java environment manually. Open a terminal and enter:
java -version
If you see anything other than sun jre, this means that something else is already assuming the role of java provider. If so, the default can be changed by installing galternatives (should appear under Applications > System Tools)

greengrocer 12-07-2008 05:48 PM

Hey Dv502, thanks man you were very close with the solution, you get half a star.

I could not find package name "restricted-extras" in the synaptic list, so I googled and discovered that the package I needed to install is actually called "ubuntu-restricted-extras".

I installed "ubuntu-restricted-extras" and typed java -version into a console which yielded the following response:

Code:

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15,mixed mode)

Then I visited www.java.com and verified if java.com test would work, which it did.

The test at www.java.com reveals that the version of java included in the ubuntu-restricted-extras is an old version of java. The current version at the time of writing this is Java Version 6 Update 11, so what if I needed a later version?

jay73 12-07-2008 06:28 PM

From the output of java -version, I get the impression that you are running a 64 bit operating system. If so, you will also have a 64 bit JRE. As there is no "official" 64 bit java plug-in (by which I mean, one released by Sun), Ubuntu provides at least two alternatives.
This would explain why the plug-in is getting identified as an older version although it need not be. In fact, the openJDK plug-in is a preview of the upcoming java 1.7 release; far from being "outdated", it is really cutting edge. As for the other one (gcj plug-in), that one is based on java 1.4 or 1.5 so, yes, it would look outdated.
Now, not to worry, 1.6 introduced hardly any new features so a 1.5 plug-in should work just as well. However, bear in mind that neither of the two plug-ins has official status and you may occasionally come across a site that depends on features that are exclusive to the Sun plug-in. In this case, until Sun at last produces a 64 bit plug-in, there is little you can do other than running a 32 bit java environment (which will require a 32 bit browser).

greengrocer 12-07-2008 06:43 PM

Quote:

Originally Posted by jay73 (Post 3367541)
From the output of java -version, I get the impression that you are running a 64 bit operating system. If so, you will also have a 64 bit JRE. As there is no "official" 64 bit java plug-in (by which I mean, one released by Sun), Ubuntu provides at least two alternatives.
This would explain why the plug-in is getting identified as an older version although it need not be. In fact, the openJDK plug-in is a preview of the upcoming java 1.7 release; far from being "outdated", it is really cutting edge. As for the other one (gcj plug-in), that one is based on java 1.4 or 1.5 so, yes, it would look outdated.
Now, not to worry, 1.6 introduced hardly any new features so a 1.5 plug-in should work just as well. However, bear in mind that neither of the two plug-ins has official status and you may occasionally come across a site that depends on features that are exclusive to the Sun plug-in. In this case, until Sun at last produces a 64 bit plug-in, there is little you can do other than running a 32 bit java environment (which will require a 32 bit browser).

I am running the 32 bit version of Ubuntu 8.10 (Intrepid Ibex)

jay73 12-07-2008 08:10 PM

Ah, OK, apparently they now ship the server edition of java with 32 bit too. Anyway, if you have 1.6.0u10, you are not going to miss out on a lot. Updates as a rule do not add features but add optimization, solve bugs, etc. If you insist on keeping up with the latest, you'll need to install a JR manually every two to four weeks.

dv502 12-08-2008 07:26 AM

Quote:

Originally Posted by greengrocer (Post 3367522)
Hey Dv502, thanks man you were very close with the solution, you get half a star.

I could not find package name "restricted-extras" in the synaptic list, so I googled and discovered that the package I needed to install is actually called "ubuntu-restricted-extras".

Yeah, I missed by a ubuntu suffix, it's been a long time since I used ubuntu, almost 5 years ago.

I'm a arch/slackware junkie.

Anyway, I'm glad you got it working. Great job.


All times are GMT -5. The time now is 09:01 AM.