I installed Java9 (the version currently available on the Oracle website ) for Windows (Windows 10 x64 Professional, updated, works as a virtual machine vmware-> VMware Workstation 12). I added jdk\bin
to User Path and tried to use Git Bash to execute commands, but even if it JShell
starts, it will not execute any command after clicking Enter
, it just sits there, doing nothing.
Interestingly, it works fine with the default Windows command line CMD
or Powershell
. If I remember Git Bash correctly, this is Cygwin . What could be the reason for this?
In addition, it is not directly related to JShell
, but I had similar problems on another machine with some command line tools, for example JHipster (works on CMD, but not on GitBash).
Mandatory screenshot: -

Edit: Use jshell -v
does not matter. In addition, using any of the auxiliary REPL commands, such as /help
or /help intro
, causes the shell to also stop.
source
share