42.1 Install Sun Java

% XXXX See also http://www.crazysquirrel.com/computing/debian/java.jspx

The java-package Debian package will go through the process of installing Sun’s Java distribution. It supplies the command -, make, jpkg to do this.

Obtain, for example, jdk-1_5_0_06-linux-i586.bin (this is the J2SE kit) from http://java.sun.com. It is a 46MB file so over a modem that could be 3 hours or so!

Once available turn it into a Debian package:

  $ fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin

You will be asked for a Maintainer name for the package (you can give your name) and an email address (again, use your own). These are just pieces of information for the packaging, and have no consequence. The debian package that is generated can then be installed:

  $ wajig install sun-j2sdk1.5_1.5.0+update06_i386.deb

The manual approach for this (with an older Java version) is to save the file into /usr/local/. Then

  # sh j2sdk-1_4_2_03-linux-i586.bin

To accept the license type yes and the installation will begin. This will create a new directory in /usr/local/ with the name j2sdk1.4.2_03. Now create the necessary links:

  # ln -s /usr/local/j2sdk1.4.2_03/bin/* /usr/local/bin

To confirm it is installed:

  $ java -version

This will also provide the necessary libraries for the Java plugin for Mozilla (and hence Firefox and Epiphany).

If there’s a problem it might be protections:

  # chmod -R go+rX j2sdk1.4.2_03


Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.