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:
How to fix this issue. Please help.
This is a known bug with JShell for a certain version of Java. Update your Java version and the problem should go away.