Java is not an internal or external command [FIX]
If you know that such a bjaka of Java is not an internal or external command , then this tutorial is for you.
In detail we will not climb why and how, for this, read books on Windows.
1. Let's start with determining the place where JAVA is installed (JRE or JDK, depending on what they put).
We are looking for, remember where it was put. In most cases, it is located here:
Further, in this folder there can be both JRE versions and JDK, it all depends on what you put. JDK version is preferred for developers, has a compiler. JRE is a common environment, simple users lack it.
And so, let's say you have a JDK, and its path will be as follows:
2. Next thing ... copy your full path to the BIN folder to the clipboard.
And so, suppose we copied the above path to the clipboard. Everything, we keep it there.
3. Go to "Control Panel-> System-> Advanced-> Environment Variables."
4. Next, look for the variable PATH in the system variables, and edit it.
From now on, be careful, I advise you to copy the contents of the variable into a text file for every fireman.
First of all, look for any other references to java (old, duplicates, etc.).
If there are such, carefully remove the path from the variable PATH.
For example, it might look like this:
%SystemRoot%\System32\;D:\Java\Jre;C:\Folder1\Folder 2.... итд.
You need to carefully render "D: \ Java \ Jre" and one semicolon (separating the path.
It is important to follow the format, for example:
That is, each path to a folder must be separated from the other by a semicolon. Attention! Skipping multiple semicolons is not allowed.
5. Now we add our way to JDK \ JRE to the very END of the line, separated by semicolons.
For example, it will look like this:
Everything, we press OK and if everything correctly we receive normal result.
It works on any Windows ... at least x86, or x64 ... or even 128bit for those who are in the tank.
You can then restart the computer, but it is optional.