You added your new java path to the end of your path statement, but the previous JDK was already in your path, and is therefore coming up first in your search order.
First, verify your change to .bash_profile has successfully updated your path (I usually make these changes to .bashrc):
If so, then go back and reverse the order of your path arguments in .bash_profile so that the new JDK comes up first. I don't see any reason for having multiple path statements, so...
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=/usr/local/jdk1.6.0_24/bin:$PATH:$HOME/bin