Are you sure that you have the right version of Java installed? Please check the release notes for the version of OpenOffice.org you have installed.
When you have verified that you do have the right version of Java on your system, and it is still not recognized, you can manually insert the path in the relevant Java dialog during OOo installation.