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 kind of Java is not an internal or external command , then this tutorial is for you.

We won’t go into details why this is and how what, for this, read books on Windows.

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

We are looking for, remember where they put her. 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 installed. JDK version is preferable for developers, it has a compiler. JRE is an ordinary environment, simple users have enough of it.

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

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

2. The next thing ... copy to your clipboard your full path to the BIN folder.

And so, suppose we copied the above path to the clipboard. That's it, hold it there.

3. Go to "Control Panel-> System-> Advanced-> Environment Variables".

4. Next, look for the PATH variable 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 for if there are still any links to java (old, duplicates, etc.).

If there are any, 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 put out "D: \ Java \ Jre" and one semicolon (separating the paths.

It is important to follow the format, for example:


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

5.Now we add our path to JDK \ JRE at the very END of the line, separated by semicolons.

An example would 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.

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