I have set the environment variable for Java 7 but some software are picking Java 1.8 as default. When I am checking version through command prompt it is giving different results. How and why is this happening?
C:\Users\TanuGarg>java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
C:\Users\TanuGarg>javac -version
javac 1.7.0-internal