why do we add bin directory to the path inside Environment Variables?

3.5k Views Asked by At

Often times I found myself editing Path in Environment Variables for the purpose of installation some new library files into the Operating System for e.g adding Java jdk bin or OpenCv Bin into the Path inside Environment Variables.

My question is what benefit does this bring to the operating system and how does it help ; other than the fact that I am able to compile the java files through command prompt after this?

1

There are 1 best solutions below

3
On BEST ANSWER

When you add something to your system path it could be more visible for applications that need to have access to it. It acts like a bridge between application and it's requirements. It's a common way for many applications (ex. OpenCV or JDK) to have access to their modules and libraries through this system variables. If you don't set this variables they have no choice where to search for their requirements!