Halo, I just reinstall JDK in my computer. But when I want to compile my code, there was an error. It shows “‘javac’ is not recognized as an internal or external command,
operable program or batch file”.
Then, I go to google and found a way. Here the steps. It’s working in mine.
1. Open system properties. Click Run > sysdm.cpl > enter
Click Advanced tab > then Click Environments Variables
2. Double click in Path. Then click New. Type C:\Program Files\Java\jdk1.8.0_112\bin (or copy paste your bin folder path) then Ok.
3. Close and Reopen your cmd