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
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.