Thursday, 1 December 2016

How to set java_home and java_path?

After installing java,  we need to set the java home and path..

you can set it in two ways, one through screen and other with cmd.

I will show you how to set it through cmd..















set JAVA_HOME=your java path without bin

set PATH=%path%;your java path with bin

you should not leave any space in between after PATH or JAVA_HOME..

you can check the path using echo command

In the screenshot I made mistake by giving double quotes..

if you use double quotes, u will get this error Files\Java\jdk1.8.0_112 was unexpected at this time in future


No comments:

Post a Comment