'jshell' is not recognized as an internal or external command
jshell
is a part of JDK 10 and it's located in the %JAVA_HOME%\bin
folder on Windows.
Possible problems:
You installed JRE 10 only (instead of JDK 10).
jshell
is NOT part of the JRE.%JAVA_HOME%\bin
is not part of thePATH
system variable.
See also: Environment variables for java installation
- check if jshell is installed with your Java environment.
ls [JAVA-INSTALLEDPATH]/bin
- if jshell does not exist download appropriate JDK
- if jshell is present append path in your environment profile or use full path.
You need to add the bin
folder of your Java Development Kit (JDK) installation to the PATH
environment variable. The java
command works, because the JRE installs a copy of the java.exe
executable in C:\ProgramData\Oracle\Java\javapath\
and adds it to the PATH
.
For editing the PATH
, see How do I set system environment variables in Windows 10? on superuser