You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by mohammad awadat <mo...@hotmail.com> on 2016/06/01 07:43:27 UTC
Re: Open Office with Oracle forms 10g
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: http://openoffice.2283327.n4.nabble.com/Open-Office-with-Oracle-forms-10g-tp4680555p4680574.html
Sent from the Development mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: Open Office with Oracle forms 10g
Posted by Carl Marcum <cm...@apache.org>.
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:
http://search.maven.org/#search|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 OpenOffice.org 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 OpenOffice.org 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
"BootstrapSocketConnector.bootstrap(oooExeFolder)":
> XComponentContext xContext =
BootstrapSocketConnector.bootstrap(oooExeFolder);
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,
Carl
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: http://openoffice.2283327.n4.nabble.com/Open-Office-with-Oracle-forms-10g-tp4680555p4680574.html
> Sent from the Development mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org