Many people still asking to me how to setting java path in Fedora. It’s like other distro, just add some line in your ~/.bash_profile like this (with assumption that java’s installation is in /usr/java/latest),
JAVA_HOME=/usr/java/latest export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH
Done.