Java -version shows old version of java -


i have jdk 1.7_51 , jre 1.7.79 update. java_home set c:\program files\java\jdk1.7.0_51 , jre_home set c:\program files\java\jre7(update 79) , path points jdk 1.7_51/bin.

why java -version doesn't point java 7 79 update? points java 7 update 51. should ideally point jre update 79.

when type in command prompt java searches path env variable , first result hits - returns. since pointed path jdk 1.7_51 - that's you're getting.

java_home environment variable defined agreed protocol applications uses java. not apply when type in command prompt java -version (or java + other switch).


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -