0

Location where my java is installed

Can someone please let me know what should path for java I need to mention in the environment variable. for java_home etc..Let me know if you need more info from me. I am very new to the java installation so please excuse if I ask silly question.

Java version : java version "1.8.0_171"

Another strange this is that there is no jdk folder in java. please refer to the link Location where my java is installed...

Thanks!

1 Answer 1

3

For JAVA_HOME it should be C:\java, but on your Path variable, it should point to C:\java\bin\ since Path is what is used to tell the Command Prompt where to look for executables.

Sign up to request clarification or add additional context in comments.

3 Comments

You may want to try %JAVA_HOME%\bin to keep it consistent. Whether it works would depend on which one is set first.
Is the backslash required?
Forward slash should be fine as well but I haven't tested it. Honestly with the newer versions of Windows, I'd be shocked if it didn't work fine with either slash

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.