What can I do when I keep receiving the error
\'javac\' is not recognized as an internal or external command, operable program or batch file
This just means that javac isn't in your PATH variable.
On Windows, you just have to add the folder that contains javac.exe to the PATH environment variable (Win+Pause/Break).
On Linux/Mac/Unix, just append that directory to $PATH in .bashrc or similar.