Bizzerk
Member
This is for windows
How to fix "java is not recognized as an internal command or external command"
Let's start! Press Start, type cmd, and hit Enter. You will now get a command prompt screen. Type "java -version", without the "", and you will see something like this:
Notice where it says java version "1.7.0_17". If the number starts with 1.7, you are running java 7. If this number starts with 1.6, you have java 6. We will use this later in our tutorial.
Now go to: Start>Computer>System Properties (Top middle)>Advanced system settings (Left side)>Environment Variables (Button at the bottom right corner).
You will now see 2 white boxes. Look at the bottom box named "System Veriables" and find the Variable named "Path". Double click it, and a new window will pop up. Move to the end of "Variable value" and place a semicolon ( ; ). You would now need to find out your Java path.
Remember the java version from the first step? Good. Press Start, go to Computer, and double click on C:\ (Usually the first drive, on your left). Now, you need to know if you have either a 64-bit or 32-bit version of java. If you have a 32-bit computer, you would have a 32-bit version of Java. If you are on 64-bit, you have either a 32-bit or 64-bit version.
How do I find out if I have a 32-bit or 64-bit computer?
Go to: Start>Computer>System Properties. Find "System Type". This will either say 32-bit or 64-bit Operating System.
I'm on a 32-bit computer. What is my path?
If you're using Java 6: C:\Program Files\Java\jre6\bin
If you're using Java 7: C:\Program Files\Java\jre7\bin
I'm on a 64-bit computer. What is my path?
Go to this website and allow Java to run. Under "Java Architecture" it will say either 32 or 64-bit.
If it says 32-bit, and you have Java 6: C:\Program Files\Java\jre6\bin
If it says 32-bit, and you have Java 7: C:\Program Files\Java\jre7\bin
If it says 64-bit, and you have Java 6: C:\Program Files (x86)\Java\jre6\bin
If it says 64-bit, and you have Java 7: C:\Program Files (x86)\Java\jre7\bin
Now that you know your java path, insert that after the semicolin in the "System Variable" window. "Variable value" will now say, for example:
%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Java\jre7\bin
The bold part would be the semicolin, followed by your path. Click on "Ok" and you're done!
I originally found this post here https://forums.bukkit.org/threads/h...-internal-command-or-external-command.139263/
How to fix "java is not recognized as an internal command or external command"
Let's start! Press Start, type cmd, and hit Enter. You will now get a command prompt screen. Type "java -version", without the "", and you will see something like this:
Notice where it says java version "1.7.0_17". If the number starts with 1.7, you are running java 7. If this number starts with 1.6, you have java 6. We will use this later in our tutorial.
Now go to: Start>Computer>System Properties (Top middle)>Advanced system settings (Left side)>Environment Variables (Button at the bottom right corner).
You will now see 2 white boxes. Look at the bottom box named "System Veriables" and find the Variable named "Path". Double click it, and a new window will pop up. Move to the end of "Variable value" and place a semicolon ( ; ). You would now need to find out your Java path.
Remember the java version from the first step? Good. Press Start, go to Computer, and double click on C:\ (Usually the first drive, on your left). Now, you need to know if you have either a 64-bit or 32-bit version of java. If you have a 32-bit computer, you would have a 32-bit version of Java. If you are on 64-bit, you have either a 32-bit or 64-bit version.
How do I find out if I have a 32-bit or 64-bit computer?
Go to: Start>Computer>System Properties. Find "System Type". This will either say 32-bit or 64-bit Operating System.
I'm on a 32-bit computer. What is my path?
If you're using Java 6: C:\Program Files\Java\jre6\bin
If you're using Java 7: C:\Program Files\Java\jre7\bin
I'm on a 64-bit computer. What is my path?
Go to this website and allow Java to run. Under "Java Architecture" it will say either 32 or 64-bit.
If it says 32-bit, and you have Java 6: C:\Program Files\Java\jre6\bin
If it says 32-bit, and you have Java 7: C:\Program Files\Java\jre7\bin
If it says 64-bit, and you have Java 6: C:\Program Files (x86)\Java\jre6\bin
If it says 64-bit, and you have Java 7: C:\Program Files (x86)\Java\jre7\bin
Now that you know your java path, insert that after the semicolin in the "System Variable" window. "Variable value" will now say, for example:
%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Java\jre7\bin
The bold part would be the semicolin, followed by your path. Click on "Ok" and you're done!
I originally found this post here https://forums.bukkit.org/threads/h...-internal-command-or-external-command.139263/