![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2005
Beans: 32
|
How to install Sun's Java
Since I haven't seen any how to's on how to install Sun's java (Any Version) I thought I'd write up a little how to.
First you will need to add all the extra repositories for Ubuntu. (ie Multiverse, Universe...) Please see other how to's on how to do that. Now go to Sun's website http://java.sun.com and select the java jdk or jre that you want. In my case I needed 1.4.2 so I downloaded j2sdk-1_4_2_09-linux-i586.bin. Then run the following commands from the terminal: First install the required packages: sudo apt-get install fakeroot java-package java-common Create the Deb file for the install: fakeroot make-jpkg jre-1_5_0_05-linux-i586.bin Install The deb file sudo dpkg -i sun-j2re1.5_1.5.0+update05_i386.deb Now make Sun's java the default by running this command and selecting it. sudo update-alternatives --config java I hope that helps. The instructions above are dated, please do not use them. Use the following instead: Execute one of the following: sudo apt-get install sun-java6-jdk - For the JDK (Developer) sudo apt-get install sun-java6-jre - For the JRE (User) Last edited by Adamal; July 1st, 2008 at 11:09 AM.. |
|
|
|
|
|
#2 |
|
Quad Shot of Ubuntu
![]() Join Date: Jan 2005
Beans: 290
|
Re: How to install Sun's Java
Edit: removed alternate method and added to it's own thread.
__________________
... Last edited by Arktis; October 15th, 2005 at 04:32 PM.. |
|
|
|
|
|
#3 | |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2005
Beans: 32
|
Re: How to install Sun's Java
Yes java-package is in the repositories. Here is my sources.list
Quote:
|
|
|
|
|
|
|
#4 |
|
Skinny Extra Sweet Ubuntu
![]() Join Date: Feb 2005
My beans are hidden!
|
Re: How to install Sun's Java
The above is not the default sources.list. We should assume the user is starting from zero
|
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2005
Beans: 32
|
Re: How to install Sun's Java
Re-read my first post. You will see that I stated that you will need to add the extra repositories.
Last edited by Adamal; October 15th, 2005 at 05:06 PM.. |
|
|
|
|
|
#6 |
|
Quad Shot of Ubuntu
![]() Join Date: Jan 2005
Beans: 290
|
Re: How to install Sun's Java
Yeah, sorry about that. I finished editing up my alternate method if you want to check that out. 'Twas an educational experience... probably nobody will use it.
![]()
__________________
... |
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2005
Beans: 16
|
Re: How to install Sun's Java
I get the following error:
Code:
fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin Creating temporary directory: /tmp/make-jpkg.XXXXV5OMN4 Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh No matching plugin was found. Removing temporary directory: done |
|
|
|
|
|
#8 |
|
Dark Roasted Ubuntu
![]() Join Date: Aug 2005
Beans: 1,028
|
Re: How to install Sun's Java
just curious.
how would one uninstall this? |
|
|
|
|
|
#9 | |
|
First Cup of Ubuntu
![]() Join Date: Nov 2004
Beans: 3
|
Re: How to install Sun's Java
Quote:
Code:
dpkg -l |grep -i java Code:
sudo apt-get remove sun-j2re1.5
__________________
noxfu "Progress doesn't come from early risers -- progress is made by lazy men looking for easier ways to do things." -- Lazarus Long |
|
|
|
|
|
|
#10 |
|
Dipped in Ubuntu
![]() |
Re: How to install Sun's Java
Why are we using fakeroot and not sudo? Or am I confused as to what fakeroot is/does?
- Kev
__________________
Reg. Linux User #389145 ThinkPad T42p running Breezy (with [Multi/Uni]verse, Marillat, Sarge, Cipherphunk and BMPx repos). All (sub)systems are a GO. Kill all the Spiders to save the Butterflies. Is this what we call Eden? Last.FM |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|