How to install java(Access Java through cmd prompt)
https://letsknowaboutcomputer.blogspot.com/2011/12/how-to-install-java.html
1. Download the latest version of the Java JDK from HERE.
2. Double-click on the install file and it should open an installer. Click next and accept the license. On the next screen you will encounter some options.Leave these untouched. Finish the installation carefully.
3. Now go to Start > Run... or by typing Windows Key + R.In the text box, type "cmd" and click "OK".A simple window should be opened with a black background and a text prompt. This is called the "Command Prompt." It could really be any color.
After focusing the window, type "javac" and press enter. If the prompt returns something along the lines of: "'javac' is not recognized as an internal or external command, operable program or batch file".
4. To solve this problem go to Start > My Computer > Right Click and select "Properties". This should open a window named "System Properties". Click on the "Advanced" tab and then click "Environment Variables". Next, another window opens with a lot of confusing sentences and letters. Double-click on the "Path" variable on either of the option boxes. It is recommended to edit the variable in the box "User variables for (your username)".
Once the variable is opened, a text box in yet another window appears. Careful not to delete anything in this box. At the end of the text box, add a semi-colon if there is not one already, and add "C:\Program Files\Java\jdk1.6.0\bin" to the text box. This is assuming you did not change the file path of the installation.
Click "Apply" and "OK" to all the windows you have just opened.
Open the command prompt again, while following step 3 again to see if that "javac" command works.
2. Double-click on the install file and it should open an installer. Click next and accept the license. On the next screen you will encounter some options.Leave these untouched. Finish the installation carefully.
3. Now go to Start > Run... or by typing Windows Key + R.In the text box, type "cmd" and click "OK".A simple window should be opened with a black background and a text prompt. This is called the "Command Prompt." It could really be any color.
After focusing the window, type "javac" and press enter. If the prompt returns something along the lines of: "'javac' is not recognized as an internal or external command, operable program or batch file".
4. To solve this problem go to Start > My Computer > Right Click and select "Properties". This should open a window named "System Properties". Click on the "Advanced" tab and then click "Environment Variables". Next, another window opens with a lot of confusing sentences and letters. Double-click on the "Path" variable on either of the option boxes. It is recommended to edit the variable in the box "User variables for (your username)".
Once the variable is opened, a text box in yet another window appears. Careful not to delete anything in this box. At the end of the text box, add a semi-colon if there is not one already, and add "C:\Program Files\Java\jdk1.6.0\bin" to the text box. This is assuming you did not change the file path of the installation.
Click "Apply" and "OK" to all the windows you have just opened.
Open the command prompt again, while following step 3 again to see if that "javac" command works.