hi ,
if i understanded rightly , the problem is that you can't successfully add the java to your PATH ...
if so , then try to creat a simpolic link to the folder contains the ( java , javac , javadoc ... ) i mean to the folder contains the executible files of java ...
how to do this ...?
well,type :
and search for the simpolic link flag ( i quess it's -s )
and now creat this simpolic link in a folder which is already in your PATH , for sure . how do you find one like this ?? it's the one contains all of the commands you use like ( ls , cd , cp , man ... ) i quess it's /sur/bin .
that's it ,
i hope this helps ...
muhammad ,