I want to add my java path but i don't understand , among all of these path, in which i should add my java path?

I want to add my java path but i don't understand , among all of these path, I which should add my java path?

Image showing PATH variables

2

2 Answers

I understand that you want to add Java to the PATH, so you don't need to specify its location each time to execute java, javaw or javaws.

The first one (C:\Program Files (x86)\Common Files\Oracle\Java\javapath) is added by the Java installer and is the default location to find the binaries there.

After adding the path, you must create a link with JDK run this command in CMD

mklink /d C:\ProgramData\Oracle\Java\javapath "C:\Program Files\Java\jdk1.8.0_40\bin\"

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like