Python on High Sierra “No Java runtime present, requesting install”

I have python code that works just fine in multiple other places and “used” to work on my mac, but now when I try to run my code as:

python <pythonfile>.py

I get an error which says: No Java runtime present, requesting install.

I have tried all of the fixes on SO and installed the latest Java JDK. The only thing I haven’t done is reboot as I’m right in the middle of a lot of things.

Any ideas?

Python version 2.7.10 Java JDK

Java(TM) SE Runtime Environment 18.9 (build 11.0.2+7-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+7-LTS, mixed mode)```