From 6c633ce6bb8dbe86a36fb17da18912e19bae8e56 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 19 Apr 2006 14:18:24 +0000 Subject: added instructions for installing Sun Java on D... added instructions for installing Sun Java on Debian --- debian/INSTALL | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 debian/INSTALL (limited to 'debian/INSTALL') diff --git a/debian/INSTALL b/debian/INSTALL new file mode 100644 index 0000000000..46e6f64f70 --- /dev/null +++ b/debian/INSTALL @@ -0,0 +1,90 @@ +How to Install Sun Java as a Debian package +=========================================== + +In short: + + (root) > apt-get install java-package + (non-root) > fakeroot make-jpkg .bin + (root) > dpkg -i .deb + + +Step 1 - Get the Sun JVM +------------------------ +Get the latest Sun JVM from here http://java.sun.com/, i.e. + + jdk-1_5_0_06-linux-i586.bin (48974825 bytes) + + +Step 2 - Install the Required Builder Package +--------------------------------------------- +Installing Java on Debian is not the simplest thing in the world but +fortunatly the package 'java-package' will do most of the work for you +(assuming it works): + + > apt-get -u install java-package + +Make sure that your repository is fully upto date before installing +this package or you might run into problems installing the latest JVM. +You also need fakeroot if you don't have it. + + +Step 3 - Create the .deb Package File +------------------------------------- +You have to perform this step as a non-root user so I suggest using +your own account. Create a temporary directory and copy the java .bin +installer file into it. Then run the command: + + > fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin + +changing the name of the Java .bin package if you need to. + + +Step 4 - Install the Java .deb Package +-------------------------------------- +You need to be root to perform this step so switch now. Then execute +the following command: + + > dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb + +Of course you need to specify the correct package name if yours doesn't +match the name specified in the above command. + + +Step 5 - Check it Works +----------------------- +This should be the simplest step. Just execute the command: + + > java -version + +as both root and another user to make sure everything is installed correctly. + + java version "1.5.0_06" + Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) + Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) + + +Other Tasks +----------- +1) Removing the Java Packages + + Should you ever want to remove any of the Java packages you have + installed you can do that with a command like this: + + > apt-get remove sun-j2sdk1.5 + + which would remove the package installed above. If you can't remeber + what packages you have installed try searching the apt-cache for the + word sun e.g. + + > apt-cache search sun + + that should turn up the package but will match quite a lot of others + as well. + + +Useful Links +------------ +http://www.crazysquirrel.com/computing/debian/java.jspx + + +$Id: $ -- cgit v1.2.3