Do I have to keep setting the path file for javac in cmd when compiling more than 1 program?

For instance, I have set path for javac and compiled "forexample.java" so it now has a class file so I...