This may seem trivial but I haven't been able to find a fix.
I've installed the latest Java runtime environment  but when I run java -version on the command line, I still get Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
However, when I test my Java version in browser, it works fine.
How can I get Terminal using the latest java version?
 
     
     
    