To check the active version of the Java™ Runtime Environment for Windows, type java -version in the Windows command line, and press Enter
java -version, and press the return key. Notice that this computer does not have the required version of JRE active:java version "1.4.2_22" Java(TM) 2 Runtime Environment (build 1.4.2_22-b02-329)
java -version command.java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Figure A.1: The Mac Java Preferences.
* This step is current as of August 2011. However, the method for updating JRE for Mac OS X may change in the future. Please check the apple.com for the latest instructions. [The October, 2010 Java Development Guide for Mac OS X states: Note: As of the release of Java for Mac OS X 10.6 Update 3, the Java runtime ported by Apple and that ships with Mac OS X is deprecated. Developers should not rely on the Apple-supplied Java runtime being present in future versions of Mac OS X. The Java runtime shipping in Mac OS X 10.6 Snow Leopard, and Mac OS X 10.5 Leopard, will continue to be supported and maintained through the standard support cycles of those products.]