First check your java version in command prompt using 'java -version' command.
Go to system folder "C:\ProgramData\Oracle\Java\javapath". You will see 3 java exe files as shows below.
By checking the properties you can confirm the current version of Java.
Delete all 3 files in the folder.
Now Go to your installed JDK's bin folder - in my case it is C:\Program Files\Java\jdk1.8.0_25\bin and copy the same files i.e java.exe, javaw.exe and javaws.exe.
Paste all 3 files in "C:\ProgramData\Oracle\Java\javapath"
Now open command prompt to check the version of Java - command is 'java -version' and you can see that the version is changed to jdk1.8.0_25
You can check Install java in wondows if you don't have a Java version installed in Windows.
No comments:
Post a Comment