Sunday, October 28, 2018

Change java home and java path in windows 7 or windows 8

Changing the Java Home and path is little different in Windows 7 and Windows 8. Please follow the below steps to change the version of Java to Java 8 in Windows 7 or Windows 8.

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