To begin with I carefully copied and pasted the pathway for javac
into the System Variable Editing box in Advanced System Settings, making sure to carefully put it at the beginning and placing a ;
after bin
, before the other parts.
Then I followed the Oracle tutorial for the HelloWorldApp
to the letter, setting up a my application folder and creating a notepad file inside.
Subsequent to all this, I opened the command shell in windows and punched in my script; hit dir;
got the spiel about files and such; entered javac HelloWorldApp.java
to only end invariably with:
"Javac not a recognised command"
Arrgh what am I doing wrong? Is it, as I suspect--that the Java SE12
isn't loaded properly (there is no .exe
after my javac
file).
- Am I not saving the notepad file correctly? (ie HelloWorld?)
- Am I not editing the path for the javac compiler properly?