Hello KylieLewis,
Thank you for using Apple Support Communities! I understand that you're encountering a "To use the "java" command-line tool you need to install a JDK" pop-up on your Mac running macOS Catalina.
I suggest confirming that if there is an update available for Java, which can be found here:
Java SE Development Kit 13 - Downloads
You may also want to take a look at the following support page, which provides additional steps to take specific to macOS Catalina:
Using the JDK or JRE on macOS Catalina (10.15)
If you're still encountering the pop-up, you'll want to reach out to Oracle Support using the 'Contact' link at the upper-right of either of those pages.
Cheers!