When using Git Bash Java command line programs provide no console when called with java.lang.System.console()
. This causes third party Java tools to fail if they require input. java.lang.System.in
works, though.
The problem is caused by using mintty as terminal application. When installing Git for Windows one is queried which terminal to use. The problem is solved if "Use Windows' default console window" is chosen as terminal upon installation. To change this when already installed, rerun the installer and make sure to de-select the "Only show new options" checkbox.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With