Mamoon Pandit
Mamoon Pandit

Reputation: 11

Path variable issue in cmd commands and java commands

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

Answers (2)

Vishal T
Vishal T

Reputation: 85

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

PATH1;PATH2

Upvotes: 0

tpschmidt
tpschmidt

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

Related Questions