I installed Java JDK then set the path of system environment in advanced setting but still java
is not recognized in command prompt..
Asked
Active
Viewed 536 times
0

Andrew Thompson
- 168,117
- 40
- 217
- 433
-
1might be duplicate of https://stackoverflow.com/questions/15796855/java-is-not-recognized-as-an-internal-or-external-command – Yogesh.Kathayat Sep 18 '19 at 11:02
-
3Possible duplicate of ['Java' is not recognized as an internal or external command](https://stackoverflow.com/questions/15796855/java-is-not-recognized-as-an-internal-or-external-command) – Butiri Dan Sep 18 '19 at 11:04
-
1@ButiriDan it is the same question then the one from Yogesh.Kathayat. – dan1st Sep 18 '19 at 11:19
-
Click a couple of times on Move Up button, one of the earlier entries might go wrong. Try also in the console the path you gave + "java -version". – Joop Eggen Sep 18 '19 at 12:19
1 Answers
0
There are multiple possibilities
- You tried to execute
jawa ...
. In this case, you made a spelling mistake. It isjava
and notjawa
. - the directory of
java
(orjava.exe
) is not in yourPATH
. If you use windows try runningset PATH=<C:\Path\to\Java\bin>
and if you use Unix-like systems, tryPATH=/<Path/to/Java/bin>
.

dan1st
- 12,568
- 8
- 34
- 67
-
(I can't verify option 1 because I cannot see the screenshot currently) – dan1st Sep 18 '19 at 11:11