From Apache OpenOffice Wiki
The following installation sets are necessary to develop [PRODUCTNAME] API applications with Java. This chapter describes how to set up a Java IDE for the [PRODUCTNAME] API.
- Java applications for [PRODUCTNAME] [OO1.1] require the Java Development Kit 1.3.1 or later. Download and install a JDK from java.sun.com. To get all features, Java 1.4.1_01 is required. The recommendation is to use Java 1.4.2_05, because of important bug fixes.
- Download an Integrated Development Environment (IDE), such as NetBeans from www.netbeans.org or the SunTM One Java Studio from Sun Microsystems. Other IDEs can be used, but NetBeans/Sun One Java Studio offers the best integration. The integration of [PRODUCTNAME] with IDEs such as NetBeans is an ongoing effort. Check the files section of api.openoffice.org for the latest information about NetBeans and other IDEs.
[PRODUCTNAME] Software Development Kit (SDK)
- Obtain the [PRODUCTNAME] Software Development Kit (SDK) from www.openoffice.org. It contains the build environment for the examples mentioned in this manual and reference documentation for the [PRODUCTNAME] API, for the Java UNO runtime, and the C++ API. It also offers more example sources. By means of the SDK you can use GNU make to build and run the examples we mention here.
- Unpack the SDK somewhere in your file system. The file index.html gives an overview of the SDK. For detailed instructions which compilers to use and how to set up your development environment, please refer to the SDK installation guide.