1

When I set path C:\Windows\System32, the ipconfig command works, but javac and java -version commands don't work.

While, when I set path variable to C:\Program Files\Java\jdk-14.0.1\bin they work, but ipconfig command stops working.

How can I solve it in order to make work both the commands?

3
  • what path are you setting? Commented Jul 17, 2020 at 7:17
  • your c:\Program Files\Java\jdk-14.0.1\bin isn't in your PATH Commented Jul 17, 2020 at 7:17
  • 1
    Your path should contain multiple directories. Commented Jul 17, 2020 at 7:19

2 Answers 2

1

Welcome to SO.

You can extend your PATH variable with additional directories instead of replacing it.

See also: Adding a directory to the PATH environment variable in Windows

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

1 Comment

Thanks for your response,i tried adding path1 C:\Program Files\Java\jdk-14.0.1\bin and path2 C:\Windows\System32 it is working now .Is it correct?
0

Add both the folders to path variable seperated by ';' eg

PATH1;PATH2

2 Comments

thanks for your response ,i tried doing it but it didn't work ,i tried adding path1 C:\Program Files\Java\jdk-14.0.1\bin and path2 C:\Windows\System32 it is working now .Is it correct?
you need to set your path variable to C:\Program Files\Java\jdk-14.0.1\bin;C:\Windows\System32

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.