LinuxQuestions.org
Visit Jeremy's Blog.
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 12-06-2008, 03:10 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
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
 
Old 12-06-2008, 05:42 AM   #2
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
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/

Last edited by megerdin; 12-06-2008 at 06:51 AM.
 
Old 12-06-2008, 05:51 AM   #3
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
You need to install the restricted-extras package. This includes the codecs to play most online content and it includes java.
 
Old 12-07-2008, 04:58 AM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
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.
 
Old 12-07-2008, 06:26 AM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,088

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by greengrocer View Post
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.

Last edited by arizonagroovejet; 12-07-2008 at 06:27 AM. Reason: dv502 not fv502
 
Old 12-07-2008, 08:29 AM   #6
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
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
 
Old 12-07-2008, 09:16 AM   #7
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by megerdin View Post
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
 
Old 12-07-2008, 09:51 AM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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)
 
Old 12-07-2008, 06:48 PM   #9
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
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?
 
Old 12-07-2008, 07:28 PM   #10
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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).
 
Old 12-07-2008, 07:43 PM   #11
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by jay73 View Post
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)
 
Old 12-07-2008, 09:10 PM   #12
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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.
 
Old 12-08-2008, 08:26 AM   #13
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by greengrocer View Post
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.

Last edited by dv502; 12-08-2008 at 08:32 AM.
 
  


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: Install and Configure Cacti Monitoring tool in Ubuntu 8.10 (Intrepid Ibex) Serv LXer Syndicated Linux News 0 11-22-2008 09:11 PM
LXer: Do you really need to install Intrepid Ibex (Ubuntu Linux 8.10)? LXer Syndicated Linux News 0 11-03-2008 10:30 AM
LXer: The Perfect Server - Ubuntu Intrepid Ibex (Ubuntu 8.10) LXer Syndicated Linux News 0 11-02-2008 06:10 PM
LXer: How to install KDE 4 on Ubuntu 8.10 Intrepid Ibex LXer Syndicated Linux News 0 10-31-2008 06:00 AM
LXer: Firebird 2.1 in Ubuntu 8.10 Intrepid Ibex LXer Syndicated Linux News 0 05-30-2008 08:30 PM


All times are GMT -5. The time now is 09:54 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