How to indicate JAVA_HOME variable [error]



Watch video tutorial or check the written tutorial below the video.


1. Navigate to C:/Program Files/Java
Look for any JDK folders and find the last version if you don't have any of them then Download and install from Java official website HERE

2. On your Desktop, right-click on My Computer and open Properties
From the left side choose Advanced system settings

3. At the bottom of the window, press the Environment variables button.
Now we got to add the variable in the both: User and System variable
boxes.

4. Click New button at the User variables box and write:
Variable name: JAVA_HOME
Variable value: C:/Progra~1/Java/jdk-folders-name
NOTE: use Progra~1 for Windows x64 and Progra~2 for Windows x32
Then press OK

5. Do the same for the System variables box

6. Press Ok till you close all the windows and run again your Soft.

P.S. If you don't know whether your Windows is x64 or x32 (x86) just try Progra~1, save and run you app, if the error persists, go back and rename the folder to Progra~2.