Here is my quick and dirty patch to the script in the mpkg-j2sdk package. To get the package, add the following to your sources.list:
deb http://www.stud.uni-karlsruhe.de/~ude2 debian/ (the javaselect package looks promising, but the author suggests you don't use it) The patch is attached. It "seems" to work for me. The alternatives are added with a priority of 200. The blackdown JDKs have a higher priority so you'll either need to uninstall them or update your alternatives (quite a few for the sdk).
--- mpkg-j2sdk.orig 2002-11-12 21:40:57.000000000 -0800 +++ mpkg-j2sdk 2002-11-12 21:41:32.000000000 -0800 @@ -56,6 +56,9 @@ # j2sdk-1_4_0_01-linux-i586.bin # j2sdk-1_4_1-beta-linux-i586.bin # +# ibm: +# IBMJava2-SDK-131.tgz +# archive_basename=$( basename "${archive}" ) version=$( expr match "${archive_basename}" "[A-Za-z0-9]*-\([0-9._]*\)" | sed -e "s/_/./g" ) case "${archive_basename}" in @@ -89,6 +92,12 @@ name="j2sdk1.4-bd" description="Java (TM) 2 SDK 1.4 (Blackdown)" ;; + # IBM 1.3.1 + IBMJava2-SDK-131*) + name="j2sdk1.3.1-ibm" + description="Java (TM) 2 SDK 1.3.1 (IBM)" + version="1.3.1" + ;; *) { echo "The required informationen could not be extracted from the filename \"${archive_basename}\"." @@ -191,7 +200,7 @@ # # /usr/share/doc/${name} # -for file in demo $( cd "${archive_dir}"; echo [A-Z]* ); do +for file in demo docs $( cd "${archive_dir}"; echo [A-Z]* ); do if [ -d "${archive_dir}/${file}" -o -f "${archive_dir}/${file}" ]; then tar -C "${archive_dir}" -cf - "${file}" | tar -C "${dest_dir}/usr/share/doc/${name}" -xf - rm -rf "${archive_dir}/${file}"
-- -rupa