This page has been robot translated, sorry for typos if any. Original content here.

Java is not an internal or external command [FIX]

Java не является внутренней или внешней командой [FIX]

If you know this Java bjaka is not an internal or external command , then this tutorial is for you.

In details we will not climb why and how, for this read books on Windows.

1. Let's start by locating the place where JAVA is installed (JRE or JDK, depending on what was set).

We are looking for, remembering where it was put. In most cases, it is located here:

C:\Program Files\Java

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 the usual environment, it's enough for users.

And so, let's say you have a JDK, and its path will be this:

C:\Program Files\Java\jdk1.6.0_07\bin

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. All we hold him 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, look, no, there are still no links to java (old, duplicates, etc.).

If you have such, carefully remove the path from the PATH variable.

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 paths.

It is important to follow the format, for example:

X:\Folder\Folder;C:\Folder\Folder;E:\Folder\Folder\Folder

That is, every path to a folder should be separated from the other by a semicolon. Attention! Skipping, the use of multiple semicolons is not allowed.

5. Now add our path to JDK \ JRE at the very end of the line, through the semicolon.

For example it will look like this:

C:\Papka1;D:\Papka2\Papka0\;C:\Program Files\Java\jdk1.6.0_07\bin

All, click OK and if everything is correct we get a 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 this is optional.