Please Help, I am trying to run a compiled java class and getting errors but when I try to check my java environments it points different ways as seen below
c:\NetBeansProjects\Hello\src>javac -version
javac 1.7.0
c:\NetBeansProjects\Hello\src>java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
According to my PC(windows 7) I have
C:\Program Files (x86)\Java
jdk1.6.0_25
jdk1.7.0
jre6
jre7
How can I point it all to Java 7 or only Jave 6.....just want to try java 7 to see the fastness compared to java 6...hope all I have written helped.
Cheers.