I delete jdk\bin path from environment variables path in windows but when ı write "java -version" in anywhere , it still returns true results . How ?
            Asked
            
        
        
            Active
            
        
            Viewed 161 times
        
    3 Answers
3
            
            
        You can use the where command, to check which java application is executed when you run java -version
Is there an equivalent of 'which' on the Windows command line?
- 
                    
- 
                    you can look into http://stackoverflow.com/questions/8223511/how-to-prevent-that-java-exe-is-installed-in-windows-system32 and http://stackoverflow.com/questions/11063831/what-is-the-difference-between-system32-java-exe-and-program-files-java-jdk1 to find an answer how it got there. Probably you can simply remove it. – peter May 17 '14 at 14:20
1
            
            
        Just type where java in cmd console, and you'll get where it is. And as it shows, I think you need check this location(C:\Windows\System32), when you instal java, Java exe files are copied to windows System32 folder, java.exe, javaw.exe and javaws.exe are available there.
 
    
    
        Owen Cao
        
- 7,955
- 2
- 27
- 35
- 
                    
- 
                    1Ok, you can delete them or replace with other version's, then open a new terminal and check the version. – Owen Cao May 17 '14 at 14:16
0
            
            
        Restart your system and try again. In case, it's still pointing after restart, please check the path variable correctly. Might be some referrence still exist in either system/user path variable and thus giving the result.
 
    
    
        Sitam Jana
        
- 3,123
- 2
- 21
- 40
 
     
    