Basically, we need to set the path, to run the following execution command:
1. First, have your javac path by using Windows Explorer and copy the path address.
2. After that, go to the control panel, then go to environment variables, and there we need to add the path address followed by the semicolon.
Note - Do not delete the path which exists.
I hope this will help.
Want to know more about Java? Prefer this tutorial on Core Java Tutorial.
Want to become a Java Expert? join Java Training now!!