create a file called java.sh in ur /etc/profile.d...
add the code below:
Code:
java_path="path to your jdk download directory/bin";
PATH=$java_path:$PATH;
then, do
$ source /etc/profile.d/java.sh
both commands `javac' and `java' should work fine now...when you say
$ which javac, the result should be something like
/the path of j2dk directory/bin/
no other libraries are needed AFAIK, and you can always RTFM
hope this helps