Assumptions

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 ibm-java2-jre-5.0-4.0-linux-ppc.tgz

Java-Package

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 ibm-j2re.sh file does not have the parameters for it). Go ahead and get version 0.28. (Version 0.27 works as well.)

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.

Preparing the Kurobox for brewing Java 1.5

Must Haves

test

The the following packages may or may not be needed. BUT, if you don't install these, there will be butt loads of warnings / errors during the making of the Java 1.5 .deb package. I do recall when following the steps for creating a .deb package for Java 1.4.2 (see here), there were several warnings / errors as well. And for my purpose, it still worked fine. So if you are one of those that don't want to see a barrage of errors marching by on your console, install the packages in this section.

Install Key Packages

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