javaldx: Could not find a Java Runtime Environment!

I am getting this error
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx

I have libreoffice-java-common installed. What else am I missing or not doing correctly.

You have to install, yes, Java Runtime Environment. Check www.java.com

you need java for off line

I am running libreoffice in batch mode on Xubuntu and a Raspberry Pi. Xubuntu works just fine. The Pi is getting the titled error message from javaldx even though I have a Java run-time installed.

What exactly (details) is javaldx looking for? Where (folder) is it looking?