Fresh Macs out of the box do not include java anymore. But Jamf looks for java during recon. So what ends up happening is you get this pop-up:
Clicking "More Info" and installing that version doesn't actually solve the issue and you'll still get the pop-up on future recons. You have to install a JDK to actually get rid of the pop-ups. I have been installing a JDK in my default suite of apps every Mac we build gets, but this requires updating for new versions and whatnot. This also opens the machine up for security holes (which is why I stopped installing Flash by default as well).
The jamf binary should look for java in a better way then just running "jamf version" and looking for the result of that, which leads to the error above. You can verify that's the cause by running it manually in Terminal:
One option would be to use "/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home -d64" If it's not installed, you get the following output (but no pop-up):
Once a version is installed, you get the path in the output: