Unable to install the latest version of Java
I currently have java 1.0.6_65 installed. I downloaded version 7 of java and tried installing it. It said the installation was successful but when I went to Terminal and entered java -version it said version 1.0.6_65 was installed. In Mavericks when I did the same thing It said I couldn't install it because I did not downloaded it from the Apple Store. I went to the Apple Store but there is no Java JRE download available. What going on here?
iMac, OS X Mountain Lion (10.8.1)