javajshelljava-10

'jshell' is not recognized as an internal or external command


I am using the 'jshell command in my machine it is not recognised. But java command is working fine. is there any environment setup for jshell in jdk 10

C:\Users\Kannan
λ jshell
'jshell' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Kannan
λ java -version
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

Solution

    1. check if jshell is installed with your Java environment. ls [JAVA-INSTALLEDPATH]/bin
    2. if jshell does not exist download appropriate JDK
    3. if jshell is present append path in your environment profile or use full path.