Libreoffice does not detect Java on fresh install of 12.10: how to make it work?

view story

http://askubuntu.com – I can't use some features of Libreoffice (some extensions, macros) because my Java runtime environment (openJdk-6) is not recognized in my system (see screenshot) When launching Libreoffice from the terminal, I get: javaldx: Could not find a Java Runtime Environment! Please ensure that a JVM and the package libreoffice-java-common is installed. If it is already installed then try removing ~/.libreoffice/3/user/config /javasettings_Linux_*.xml Warning: failed to read path from javaldx Fontconfig warning: "/usr/lib/libreoffice/share/fonts/truetype/fc_local.conf", line 13: Having multiple < (HowTos)