hod139
March 6th, 2006, 11:15 PM
EDIT: Dapper now includes the official Sun java packages in the multiverse repositories. To install the runtime environment simply type sudo apt-get install sun-java5-jre. For development sudo apt-get install sun-java5-jdk and for the firefox plugin sudo apt-get install sun-java5-pluginI have seen this question asked many times, but have not found a simple howto to refer people to. Here is my first attempt at making one. I should add that these instructions only work for i386 machines. AMD64 users can follow the instructions found here (http://ubuntuforums.org/showthread.php?t=76735), substituting amd64 for i386 in that howto.
To install Sun's JRE version 1.5: (for the SDK see below)
sudo apt-get install sun-j2re1.5 Step 2. Make Sun's JRE the system default
sudo update-java-alternatives -s java-1.5.0-sunNext, edit /etc/jvm and add
/usr/lib/j2re1.5-sun/ to the top of the file
To install Sun's SDK version 1.5 (which includes a JRE):
sudo apt-get install sun-j2sdk1.5
Step 2. Make Sun's JRE the system default
sudo update-java-alternatives -s java-1.5.0-sun Next, edit /etc/jvm and add
/usr/lib/j2sdk1.5-sun/jreto the top of the file
To install Sun's JRE version 1.5: (for the SDK see below)
sudo apt-get install sun-j2re1.5 Step 2. Make Sun's JRE the system default
sudo update-java-alternatives -s java-1.5.0-sunNext, edit /etc/jvm and add
/usr/lib/j2re1.5-sun/ to the top of the file
To install Sun's SDK version 1.5 (which includes a JRE):
sudo apt-get install sun-j2sdk1.5
Step 2. Make Sun's JRE the system default
sudo update-java-alternatives -s java-1.5.0-sun Next, edit /etc/jvm and add
/usr/lib/j2sdk1.5-sun/jreto the top of the file