openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Marcum <>
Subject Re: Open Office with Oracle forms 10g
Date Thu, 02 Jun 2016 00:23:51 GMT
Hi Mohammad,

I'm still not sure how your application is bootstrapping the office.

There is some difficulty in bootstrapping the office and connecting when 
the AOO jars are not the ones located in the installation.

The AOO jars are juh, jurt, ridl, and unoil.

The ones you list look like they are from version 3.2.1 and not 4.1.2.

I'm guessing this may be a web-app and the jars used are not located in 
the AOO program/classes folder.

One way to do this is to use the bootstrap-connector jar that can be 
found in the Maven repository.

All of these jars can be found in Maven Central here:|ga|1|g%3A%22org.openoffice%22

Method to use bootstrap-connector:

* Add the bootstrap-connector jar file to the classpath.
* Determine the folder of your executable "soffice.exe" 
(on Windows systems) or "soffice" (on *nix systems). On Windows it might 
be something like "C:\Program Files (x86)\OpenOffice 4\program\", and on 
*nix for example something like "/opt/openoffice4/program".
* Edit your Java source code file, that tries to get the connection by 
calling "Bootstrap.bootstrap()". This is mostly done with a Java source 
code line looking like this:
 > XComponentContext xContext = Bootstrap.bootstrap();
* Add the following line to your import statements:
 > import ooo.connector.BootstrapSocketConnector;
* Add a line above "Bootstrap.bootstrap()" to assign the name of the 
folder of your executable to a String variable (note 
slash direction for Windows):
 > String oooExeFolder = "C:/Program Files (x86)/OpenOffice 4/program/";
* Change the call of "Bootstrap.bootstrap()" to 
 > XComponentContext xContext = 

There is also a bootstrap-connector sources jar that has an example in it.

Another method is to use a custom classloader and office finder like the 
NetBeans plugin generated clients have.

If I've misunderstood your issue please elaborate on your connection 
method and which registry you mentioned.

Best regards,

On 06/01/2016 03:43 AM, mohammad awadat wrote:
> Dear Carl
>   this is new application ,
>   i dont know AOO jars and i using the following jar  in my application:
>   1- commons-cli-1.1
>   2- commons-io-1.4
>   3- jodconverter-core-3.0-beta-4
>   4- json-20090211
>   5- juh-3.2.1
>   6- jurt-3.2.1
>   7- ridl-3.2.1
>   8- unoil-3.2.1
> open office in the same save server of oracle application server OAS
> --
> View this message in context:
> Sent from the Development mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message