How to use the same version of java 1.7 for both java and javac, on my centos I am getting results like this...
for command java -version:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
for command javac -version:
javac 1.6.0_24
how to use 1.7 for javac too? If I need to update JAVA_HOME variable how can I update it? (using what command)