Alright then, we will configure it manually.
1) Download the
J2SE v 1.4.2_12 SDK package from sun's website. Here's the link
http://java.sun.com/j2se/1.4.2/download.html
Please select the "self-extracting file" under this section
Linux Platform - Java(TM) 2 SDK, Standard Edition 1.4.2_12 for download.
2) Make this
j2sdk-1_4_2_12-linux-i586.bin executable
Code:
chmod 0755 j2sdk-1_4_2_12-linux-i586.bin
3) Run this file
Code:
./j2sdk-1_4_2_12-linux-i586.bin
4) You will see some "Terms and Conditions" screen. Keep pressing ENTER till you are being asked to type "yes" or "no". Type "yes" and press ENTER.
5) A directory named
j2sdk1.4.2_12 will be created in the current working directory. Copy/Move this directory to your desired installation directory. I would prefer
/usr/local
Code:
mv j2sdk1.4.2_12 /usr/local/ -v
6) Add the path to /usr/local/j2sdk1.4.2_12/bin to your system's PATH variable
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin
7) Now check if it's configured correcly. Try running java and javac
8) If you see some output other than "command not found", then you are done.
9) To make this PATH variable hold the path of the java executables, add the export command used above at the end of
/etc/profile file
Code:
export PATH=$PATH:/usr/local/j2sdk1.4.2_12/bin
Please let me know if it works.