Java protocol handler registered, but not called
Posted: Thu Jul 16, 2026 1:04 am
Hi,
I'm trying to write a Java extension for OpenOffice Writer (version 4.1.x, on Linux). I used the protocol handler example from the SDK distribution that matches the OOO version as a starting point. The Java code compiles, and the package loads. Menu and toolbar entries have been created, but they are greyed out. Additional debug output shows that the Java class is loaded, as __getComponentFactory() and __writeRegistryServiceInfo() are called, and the extension is listed in "unopkg list –verbose". However, functions such as queryDispatch(), queryDispatches(), addStatusListener() and dispatch() are never called. Does anyone have any idea what the problem could be? Alternatively, does anyone know of a Java extension that provides a protocol handler, including source code, which works with recent AOO versions, and that I could use as a reference?
Thanks in advance.
I'm trying to write a Java extension for OpenOffice Writer (version 4.1.x, on Linux). I used the protocol handler example from the SDK distribution that matches the OOO version as a starting point. The Java code compiles, and the package loads. Menu and toolbar entries have been created, but they are greyed out. Additional debug output shows that the Java class is loaded, as __getComponentFactory() and __writeRegistryServiceInfo() are called, and the extension is listed in "unopkg list –verbose". However, functions such as queryDispatch(), queryDispatches(), addStatusListener() and dispatch() are never called. Does anyone have any idea what the problem could be? Alternatively, does anyone know of a Java extension that provides a protocol handler, including source code, which works with recent AOO versions, and that I could use as a reference?
Thanks in advance.