Please keep in mind that compiling in the windows shell works, so there is little (if not zero) possibility of this issue being a PATH issue.
I have spent a lot of time research how to do this, and all the results I found online say that you can do:
NPP_SAVE
javac $(FILE_NAME)
java $(NAME_PART)
but that does not work for me. In the NPP_EXEC console, I can type java, and I get the normal results as I would from cmd, but any time I type javac, I get the dreaded error code 2 error:
================ READY ================
javac
javac
CreateProcess() failed with error code 2:
The system cannot find the file specified.
================ READY ================
Edit
I must clarify some confusion:
- This solution should run in a single script. The goal is to be able to change code, press a hotkey combination (think F5 in Visual Studio) and it builds/compiles and runs.
- The actually issue, iirc, was that notepad++ is not recognizing javac for some reason..
Sorry for the confusion...