javacommand-promptjshell

Installed Java 11, opened Jshell, command typed is not shown and hitting enter does not do anything


I uninstalled Java 8, installed Java 11 configured environment path. Opened command prompt in administrator mode, typed jshell which opened jshell and shows following text:

C:\WINDOWS\system32>jshell
|  Welcome to JShell -- Version 11.0.10
|  For an introduction type: /help intro
jshell>

Now when I type some command/text, it is not visible in command prompt and hitting enter button too doesn't affects anything. However if i press ctrl+c, it start showing previous typed command as shown in below image, but again hitting enter button doesn't do anything:

my command prompt image

How to fix this issue. Please help.


Solution

  • This is a known bug with JShell for a certain version of Java. Update your Java version and the problem should go away.