First...
Remove kaffe or jdkgcj from your system if they exist.
Second...
Install the latest java rpm or bin (i.e. j2sdk1.4.1 or whatever is clever).
Third...
The order of creating proper java variable paths should be entered in this order after the PATH variable in .bash_profile or .bashrc:
export JAVA_HOME=/usr/java/j2sdk1.4.1_02
export PATH=$JAVA_HOME/bin:$PATH
Fourth...
A nice typed command:
source ~/.bash_profile
or
source ~/.bashrc
Test...
java -version
which java
HTH
altoine |