LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-09-2005, 08:57 PM   #1
Rory in Toronto
Member
 
Registered: Mar 2004
Posts: 136

Rep: Reputation: 15
How to Add Java to Ubuntu 5.04


I've been searching like mad for a way to install java in my Firefox browser in Ubuntu/Kubuntu. Finally found a good method, so I thought I'd share it here to save others from the same grief. These are instructions for newbies, so anyone should be able to do this.

I did this via Synaptic (which I installed via kynaptic, in Kubuntu).


METHOD 1 (most current version of Java for Ubuntu):

In Synaptic, go: Settings>Repositories>select: New

Add...
URI: http://backports.ubuntuforums.org/backports
Distribution: hoary-backports
Section(s): main universe multiverse restricted
Click "ok"

Hit the green "Reload" icon in the main toolbar.

Click "Search" icon in the main toolbar and then paste and search for: sun-j2re1.5

When the package appears, you're half way there. You've successfully added the repository and found the package. Now it's time to install it.

Click the sun-j2re1.5 package and select "mark for installation." This will also automatically add other required packages. Follow the steps to download.

It may take a while to download, as it's 29mb.

Once done, restart your Firefox browser and you now have java installed!




METHOD 2: (try this only if Method 1 doesn't work as it's java 1.4 from Debian but it works in hoary)
In Synaptic, go: Settings>Repositories>select: New

Add...
URI: ftp://ftp.tux.org/java/debian/
Distribution: sarge
Section(s): non-free
Click: Ok

Hit the green "Reload" icon in the main toolbar.
You'll get a GPG key error, which is okay (I don't know the steps to import the GPG key, but it didn't seem to matter.)

Click "Search" icon in the main toolbar and then paste and search for: j2re1.4

When the package appears, you're half way there. You've successfully added the repository and found the package. Now it's time to install it.

Click the j2re1.4 package and select "mark for installation." This will also automatically add the java-common package, which is required. Follow the steps to download.

It may take a while to download. j2re1.4 is 22.5mb. java-common is 68.1kb.

Once downloaded, you'll see it installing from the same Synaptic download window.
** This is important **
Click: Terminal. This will show a mini-view of console in Synaptic. Accept the Java user agreement by clicking "ok" and then follow the sequence of steps in the java agreement process in the mini-console.

Once done, restart your Firefox browser and you now have java installed!

Note: there are a number of methods out there on how to do this. Others didn't work for me, but these methods did. So, whatever does the trick for you...

Last edited by Rory in Toronto; 04-10-2005 at 07:44 AM.
 
Old 04-10-2005, 02:27 AM   #2
Chuckinator
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
I've always found it easiest to install the latest JRE from java.sun.com and follow the Firefox Help instructions on installing the java plugin. You can download the latest JRE in a self-extracting binary file and follow the installation instructions on the Java site.
 
  


Reply



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
Ubuntu Opera Java biojayc Linux - Software 4 09-29-2011 03:54 PM
Ubuntu, Opera and Java hbsyn Linux - Software 0 10-08-2005 09:55 PM
how can i add all installed fonts in my java program? sanjeebko Programming 0 08-15-2005 06:16 PM
Unofficial Ubuntu 5.04 Add-On CD jiyuu0 Ubuntu 6 07-13-2005 04:27 PM
how to add java file in crontab ??? kirti Linux - General 1 12-08-2004 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:46 PM.

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
Open Source Consulting | Domain Registration