java -version and javac -version showing different versions

后端 未结 9 1857
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 01:29

I have java 7 and java 8 both installed on my windows system under C:\\Program Files\\Java

In the environment\'s path I specif

9条回答
  •  无人及你
    2020-12-03 01:41

    To resolve such kind of environment issue I always believe on command whereis, To do the same in windows download whereis.exe then set in path and execute the command

    whereis java.exe

    whereis javac.exe

    You will easily find the exact path from which location java is being called in environment as well about javac.

提交回复
热议问题