If you installed java correctly in .bash_profile.
Run this command to see if it solves or fixes your problem:
source .bash_profile
If that works then the solution is due to the fact that your system only runs your .bash_profile once (at boot up which is normal and makes perfect sense). Unless, of course, you are in a GUI environment and open up a new terminal window which would do the same effect as logging in again to use the new changes to your profile.
HTH
altoine |