Reputation: 11
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?
Upvotes: 1
Views: 100
Reputation: 85
Add both the folders to path variable seperated by ';' eg
PATH1;PATH2
Upvotes: 0
Reputation: 2707
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
Upvotes: 1