echo %path%
javac -version
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
All things are lawful, but not all things are profitable.
Jesper de Jong wrote:Welcome to the Ranch!
You'll need to modify the PATH environment variable to include the bin directory of the JDK. Here is a good page which explains how to do that: How to Edit Your System PATH for Easy Command Line Access in Windows
It explains how to set the path for the Android SDK, but it's basically the same for the JDK. Suppose that you installed your JDK in C:\Program Files\Java\jdk1.8.0_92, then you have to add: C:\Program Files\Java\jdk1.8.0_92\bin to the PATH.
Note that you'll have to close and re-open the command prompt window to make it pick up the change.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |