The annoying java prompts in Mac OS Catalina - To use the “java” command-line tool you need to install a JDK.
Download Java for OS X 2017-001 - https://support.apple.com/kb/DL1572?locale=en_SG
This version does not work for the Mac OS Catalina, and it cannot be installed. Every time I open a terminal window, the prompts appears.