It could be that .bashrc was not created. Then simply create such a file.
JAVA_HOME is the install directory for your SDK. The path must point to
the bin of the JAVA_HOME dir.
Explanation:
JAVA_HOME is read by some applications e.g. Apache,
Ant to detect the home folder, to be able to find the JRE etc.
PATH: is processed by the shell to find the java commands (java, javaw, javac etc.)
This is why you have to set both. In Linux (also in Windows) your PATH variable is the search path for commands which aren't in the local directory. So when you are in a shell and type "cp" then the shell searches in all you path folders (in this case it would be /bin/)
[ September 24, 2003: Message edited by: Oliver Refle ]