Java Language Binding

From Apache OpenOffice Wiki
Jump to: navigation, search

The Java language binding gives developers the choice of using Java or UNO components for client programs. A Java program can access components written in other languages and built with a different compiler, as well as remote objects, because of the seamless interaction of UNO bridges.

Java delivers a rich set of classes that can be used within client programs or component implementations. However, when it comes to interaction with other UNO objects, use UNO interfaces, because only those are known to the bridge and can be mapped into other environments.

To control the office from a client program, the client needs a Java 1.3 (or later) installation, a free socket port, and the following jar files juh.jar, jurt.jar, ridl.jar, and unoil.jar. A Java installation on the server-side is not necessary. A step-by-step description is given in the chapter First Steps

When using Java components, the office is installed with Java support. Also make sure that Java is enabled: there is a switch that can be set to achieve this in the Tools - Options - OpenOffice - Security dialog. All necessary jar files should have been installed during the Apache OpenOffice setup. A detailed explanation can be found in the chapter Storing the Service Manager for Further Use.

The Java UNO Runtime is documented in the Java UNO Reference which can be found in the Apache OpenOffice Software development Kit (SDK) or on

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages