Just had the same problem in Intrepid (incrementally upgraded regularly since Edgy),
Tools->Options->Java showed an empty box (although it might be I didn't wait long enough - apparently it takes a few seconds to show entries)
So I tried:
sudo dpkg --reconfigure openoffice.org-java-common
Same error message on startup. This time, after a few seconds, Tools->Options->Java showed two entries, but none of them was selected. I selected Sun Java6, restarted, and the problem was gone.
Just had the same problem in Intrepid (incrementally upgraded regularly since Edgy), Options- >Java showed an empty box (although it might be I didn't wait long enough - apparently it takes a few seconds to show entries) org-java- common Options- >Java showed two entries, but none of them was selected. I selected Sun Java6, restarted, and the problem was gone.
Tools->
So I tried:
sudo dpkg --reconfigure openoffice.
Same error message on startup. This time, after a few seconds, Tools->
openoffice.org 1:2.4.1-11ubuntu2.1 compat- headless 1.0.78-2
sun-java6-jre 6-10-0ubuntu2
sun-java5-jre 1.5.0-16-3
java-gcj-