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

[316 byte] By [siddheshwara] at [2007-11-26 12:35:42]
# 1
You are off-topic, try http://forum.java.sun.com/forum.jspa?forumID=54 instead.
PeterAhea at 2007-7-7 16:00:41 > top of Java-index,Developer Tools,Java Compiler...