java home in mac OSX
i have installed java 1.4.2 in Mac and set the path to a location.
like
export JAVA_HOME={some path} in the .bashrc file
But when ever i run the following command from the terminal
$which java
it shows the default java path instead of one put in .bashrc file
pls help asap

