Java 1.5: Debian Make and Install

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 20:20, 23 February 2007 by Phlegmer (Talk | contribs) (Preparing the Kurobox for brewing Java 1.5)

Jump to: navigation, search


The purpose of this project is to create a Debian package of Java 1.5 so that it can be managed better than installing it manually.


  • Debian is already installed
  • Kurobox is accessible via FTP

Needed Files

IBM Java for PPC,

Select 32-bit iSeries/pSeries J2SE 5.0. As of writing this, the latest version is SR4. I'm not aware of anyway to detect what version is installed so just make a mental note of the service release number in case an update is needed for later. Yes, you will need to register to download this and yes, its a pain. When you finally reach the download page, download the .tgz version of the JRE.

On the Kurobox, create directory /opt and do a chmod on it

# mkdir /opt
# chmod 777 /opt

Upload the .tgz file into the /opt directory and then do the following:

# chmod 777 /opt/ibm-java2-jre-5.0-4.0-linux-ppc.tgz


When you do an apt-get install java-package, you will get the latest "stable" version which is 0.24. Unfortunately, 0.24 is not able to make a Java 1.5 .deb file from IBM. (Specifically, the file does not have the parameters for it). Go ahead and get version 0.28. (Version 0.27 works as well.)

Upload to the Kurobox and do the following as root:

# dpkg -i java-package_0.27_all.deb


# dpkg -i java-package_0.28_all.deb

Depending on which one you use

You can verify the version of java-package you have installed by typing

# apt-cache policy java-package

Should look something like this:

 Installed: 0.27
 Candidate: 0.27
 Version Table:
*** 0.27 0
       100 /var/lib/dpkg/status
    0.24 0
       500 stable/contrib Packages

Remember that java file we downloaded from IBM? Java-Package does not recognize the file name that IBM gives it so we need to rename it to a more general name that it recognizes.

# mv /opt/ibm-java2-jre-5.0-4.0-linux-ppc.tgz /opt/ibm-java2-jre-50-linux-ppc.tgz


# apt-get install fakeroot

Nuff said

Preparing the Kurobox for brewing Java 1.5

At this point one could just and make the .deb package and see if it will work. However, there will be a plethora of warnings about not being to able find paths of various packages. So, to satisfy the make process without any warnings, install the following:

# apt-get install libgtk1.2 libxp6 libxtst6 libxt6 libgtk2.0-0 libglib2.0-0 libxmu6 unixodbc

Install Key Packages

This will install some of the basic things to assist in making life a little easier when dealing with Debian.

  • Install Key Packages which can be found here