Java & Apache OpenOffice, OpenOffice.org
Java is required for complete OpenOffice (OpenOffice.org) functionality. Java is mainly required for the HSQLDB database engine (used by our database product Base) and to make use of accessibility and assistive technologies. Furthermore some wizards rely on Java technology. See additional topics pertaining to the use of Java in OpenOffice.org and Apache OpenOffice in the Installation FAQ
So what does this mean exactly? Base (the database component) relies completely on Java technologies to run, but other programs (like Writer, Calc and Impress) only need Java for special functionality. If you do not need to use Base and do not want to use any of the Wizards, then you do not need to have Java installed and configured for running Apache OpenOffice (and older versions of OpenOffice.org). You can completely prevent OpenOffice from prompting you about the use of Java by telling OpenOffice not to use a Java runtime environment (JRE). From the OpenOffice main menu use: Tools -> OpenOffice.org -> Java, and uncheck "Use a Java runtime environment". However, we do recommend that you have a Java Runtime Environment on your system to take full advantage of OpenOffice's features without any issues.
Legacy versions of OpenOffice.org to version 3.3 included a JRE packaged with the download. Versions 3.4 of Openoffice.org or Apache OpenOffice do not.
If you already have a JRE (Java Runtime Environment) installed on your system in one of the standard areas for Java installation, OpenOffice should detect this installation and let you choose it for use in OpenOffice via the Tools-> OpenOffice.org -> Java. If you have a JRE installed that is not detected, you should be able to add it through this same menu.
You can install a JRE or configure OpenOffice to use Java at any time to get missing functionality to work.
The current versions of Apache OpenOffice work reliably with a variety of JREs including Oracle Java, versions 6 and 7 and openJDK, versions 6 and 7. Feel free to download a JRE from either of these sites if you feel you need this functionality.
Please report any problems you experience with using Java on OpenOffice through our bug reporting system, Bugzilla, or one of the other support venues listed in the support page, either the users list or forums.
For installing Java on Windows machines, one might appreciate: Download Instructions for Windows offline.