According to:
solution
5. Create the Java deb package
Then create the deb package of the Sun's Java installer by using make-jpkg In this example the Java 1.5.0 JRE is used.
fakeroot make-jpkg jre-1_5_0-linux-i586.bin
Regarding Java 1.5.0
At the time of this writing (2004-10-10) the java-package doesn't yet handle the Java 1.5.0, so you need to apply a patch I created in order for make-jpkg to be able to handle it if you get an error message that says No matching plugin was found when executing the above command.
1. Download the patch (works with version 0.14 of java-package)
2. Extract the gzipped tar archive by executing
tar zxvf patch-java-package_0.14.tar.gz
3. Then change directory into the directory that was created
cd patch-java-package
4. If you are not as root, become root by executing
su
5. Now execute the script that does the patching
./patch-java-package.sh
Example output of the patching script:
About to patch the files /usr/share/java-package/sun-j2re.sh and
/usr/share/java-package/sun-j2sdk.sh so that make-jpkg supports
the Java 1.5.0 JRE/SDK
Do you want to proceed? [y/N] y
patching file /usr/share/java-package/sun-j2re.sh
patching file /usr/share/java-package/sun-j2sdk.sh
The files have been patched successfully.
After this patching the make-jpkg can handle the Java 1.5.0 JRE and SDK fine.
Hmmm, perhaps I'm getting there. I'll let you know if it worked (for all who's interested)