Not a bash, just the facts
Chanchao
custom at freenet.de
Thu Mar 23 04:12:41 UTC 2006
On Wed, 2006-03-22 at 09:51 -0400, Derek Broughton wrote:
> > (I just checked back at the instructions for installing the java stuff
> > and it's completely rediculous. (Java / JRE is needed to run many web
> > sites and even some functions in software that comes with Ubuntu) )
>
> I can't even get Windows to install Java any easier than with Ubuntu, so
> where's the real problem? You download a zip file from Sun and uncompress
> it. If you want it automatically, you can even get it from multiverse.
> Yes, Ubuntu could do a better job of explaining how to get it, but it's Sun
> that makes it a hassle, not Ubuntu.
Well, let's see. On windows (IF you need Sun's JRE in the first place
because all websites seem to run fine without it) you click the download
link and let it open up.
On Ubuntu, from the wiki:
------------
Go to [WWW]http://java.sun.com/j2se/1.5.0/download.jsp and click on
“Download JRE 5.0 Update 6”. Ensure you do not choose one of the JDK or
J2EE versions unless you are going to develop Java applications.
You must first accept the licence, then click on “Linux self-extracting
file” (jre-1_5_0_06-linux-i586.bin). Save this file to your hard drive.
Make the downloaded file executable. At the command line, change to the
directory where you downloaded the file, and type
chmod +x jre-1_5_0_06-linux-i586.bin
Install the java-package and java-common, as well as fakeroot (which
allows a non-root user to create the package derived from Sun's bin
file):
sudo apt-get install fakeroot java-package java-common
If you get an error when installing java-package, you need to enable the
multiverse repository (see AddingRepositoriesHowto).
Use make-jpkg to translate Sun's bin file into a debian package:
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
{i} Note: You can see warning mesages like the ones below, but there is
nothing to worry about.
mkdir: cannot create directory `/etc/.java': Permission denied
./jdk-1_5_0_06-linux-i586.bin: line 507: /usr/share/mime-info/java-archive.keys: Permission denied
{X} Note: If you get an error similar to this:
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
No matching plugin was found.
Try:
DEB_BUILD_GNU_TYPE=i386-linux fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
or similar command if you are not using i386 architecture.
Install the created package using dpkg:
sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
{i} Note: in above example, i386 might have to be i586.
-----------
I wasn't kidding when I called this rediculous!! :)
Cheers,
Chanchao
More information about the ubuntu-users
mailing list