The generated registry database <COMPONENT_NAME>.rdb has to
be merged to your favorite office registry. For example, you can merge the
new types to the registry <OFFICE_PATH>/program/applicat.rdb .
Before executing the following commands you have to close every instance
of the office program.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<OFFICE_PATH>/program
<SDK_PATH>/<solaris | linux | windows>/bin/regmerge <OFFICE_PATH>/program/applicat.rdb / <COMPONENT_NAME>.rdb
Registering components
The generated JAR file <COMPONENT_NAME>.jar has to be registered
in one of the registries of your office. Here we want to recommend two ways
to register the component.
At first, you can use the BASIC macro file register_<COMPONENT_NAME>.bas .
In your office you have to the macro dialog.

Create a new macro in the Standard module.

Delete all default source lines.

Insert the source text of the file register_<COMPONENT_NAME>.bas .

Select the file register_<COMPONENT_NAME>.bas .

Step the source code.

Register the component.

Show all supported interfaces of the component.

Show all properties of the component.

Show all methods of the component.

The second way uses a SDK tool. The following command makes the
component <COMPONENT_NAME>.jar known to the global office registry in the
office program path "applicat.rdb". Before using this command you have to
customize the office path and close every instance of your office program.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<SDK>/<OPERATINGSYSTEM>/lib
java -classpath
"<OFFICE_PATH>/program/classes/jurt.jar:
<OFFICE_PATH>/program/classes/unoil.jar:
<OFFICE_PATH>/program/classes/ridl.jar:
<OFFICE_PATH>/program/classes/sandbox.jar:
<OFFICE_PATH>/program/classes/java_uno.jar:
<OFFICE_PATH>/program/classes/juh.jar:
<OFFICE_PATH>/program/classes/jut.jar"
com.sun.star.tools.uno.RegComp
"file://<OFFICE_PATH>/program/applicat.rdb"
register "file:///tmp/test/CalcAddins.jar"
com.sun.star.loader.Java2
|