You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@openoffice.apache.org by Madhu patel <pa...@gmail.com> on 2023/09/04 04:51:29 UTC

OpenOffice Executable Not found

Hi Team,

I'm trying to connect to OpenOffice through JAVA code. I'm Using
XComponentContext xContext = Bootstrap.bootstrap(), I am trying to get the
remote office component context of OpenOffice through Java. But it raises
the exception "no office executable". I've set the SDK path as shown in the
image, and added the classpath as well, as mentioned in
https://stackoverflow.com/questions/14157644/no-office-executable-found-exception-while-connecting-to-openoffice-through-java/59337721#59337721.
and I'm still getting the error.   I have attached my JAVA code, openOffice
SDK path, and Java JDK path.

Please help me in resolving this error.

Thanks

Re: OpenOffice Executable Not found

Posted by Mechtilde <oo...@mechtilde.de>.
Hello

Which OS do you use.

If you want to use it under Windows you have to install Java as a 32 bit 
version

Regards

MEchtilde

Am 04.09.23 um 06:51 schrieb Madhu patel:
> Hi Team,
> 
> I'm trying to connect to OpenOffice through JAVA code. I'm Using
> XComponentContext xContext = Bootstrap.bootstrap(), I am trying to get the
> remote office component context of OpenOffice through Java. But it raises
> the exception "no office executable". I've set the SDK path as shown in the
> image, and added the classpath as well, as mentioned in
> https://stackoverflow.com/questions/14157644/no-office-executable-found-exception-while-connecting-to-openoffice-through-java/59337721#59337721.
> and I'm still getting the error.   I have attached my JAVA code, openOffice
> SDK path, and Java JDK path.
> 
> Please help me in resolving this error.
> 
> Thanks
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org

-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: OpenOffice Executable Not found

Posted by Tim Anderson <tm...@netspace.net.au>.
Also have a look at JOD Converter: 
https://github.com/jodconverter/jodconverter
Its hides the complexity of starting and stopping OpenOffice instances 
and farming jobs out.
OpenOffice itself can be pretty brittle (corrupt settings, 
non-responsiveness).
JOD Converter will start OpenOffice with clean settings each time, and 
terminate non-responsive processes.

-Tim

On 9/09/2023 6:36 am, Marcin Gutman wrote:
> Hello,
>
> about 10 years ago I have released OOo extensions written in Java that 
> were able to create and connect to the OOo context like this:
>
> beg: source
> import ooo.connector.BootstrapSocketConnector;
> public XComponentContext bootstrapOffice(String officeDir) {
>   try {
>     return BootstrapSocketConnector.bootstrap(officeDir);
> ...
> end: source
>
> I had only bootstrap.jar with ooo.connector.BootstrapSocketConnector. 
> Today I have found source here:
> https://github.com/jeremysolarz/bootstrap-connector/blob/master/src/main/java/ooo/connector/BootstrapConnector.java 
>
> I do not know if it works today.
>
> Not updated, stopped working a few years ago:
> CorelPolyGUI
> https://extensions.openoffice.org/en/project/corelpolygui
> OOoDigitzer
> https://extensions.openoffice.org/en/project/ooodigitizer
>
> Best Regards,
> Marcin
>
> W dniu 4.09.2023 o 06:51, Madhu patel pisze:
>> Hi Team,
>>
>> I'm trying to connect to OpenOffice through JAVA code. I'm Using 
>> XComponentContext xContext = Bootstrap.bootstrap(), I am trying to 
>> get the remote office component context of OpenOffice through Java. 
>> But it raises the exception "no office executable". I've set the SDK 
>> path as shown in the image, and added the classpath as well, as 
>> mentioned in 
>> https://stackoverflow.com/questions/14157644/no-office-executable-found-exception-while-connecting-to-openoffice-through-java/59337721#59337721. 
>> and I'm still getting the error.   I have attached my JAVA code, 
>> openOffice SDK path, and Java JDK path.
>>
>> Please help me in resolving this error.
>>
>> Thanks
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:api-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail:api-help@openoffice.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org


Re: OpenOffice Executable Not found

Posted by Marcin Gutman <mg...@op.pl>.
Hello,

about 10 years ago I have released OOo extensions written in Java that 
were able to create and connect to the OOo context like this:

beg: source
import ooo.connector.BootstrapSocketConnector;
public XComponentContext bootstrapOffice(String officeDir) {
   try {
     return BootstrapSocketConnector.bootstrap(officeDir);
...
end: source

I had only bootstrap.jar with ooo.connector.BootstrapSocketConnector. 
Today I have found source here:
https://github.com/jeremysolarz/bootstrap-connector/blob/master/src/main/java/ooo/connector/BootstrapConnector.java
I do not know if it works today.

Not updated, stopped working a few years ago:
CorelPolyGUI
https://extensions.openoffice.org/en/project/corelpolygui
OOoDigitzer
https://extensions.openoffice.org/en/project/ooodigitizer

Best Regards,
Marcin

W dniu 4.09.2023 o 06:51, Madhu patel pisze:
> Hi Team,
>
> I'm trying to connect to OpenOffice through JAVA code. I'm Using 
> XComponentContext xContext = Bootstrap.bootstrap(), I am trying to get 
> the remote office component context of OpenOffice through Java. But it 
> raises the exception "no office executable". I've set the SDK path as 
> shown in the image, and added the classpath as well, as mentioned in 
> https://stackoverflow.com/questions/14157644/no-office-executable-found-exception-while-connecting-to-openoffice-through-java/59337721#59337721. 
> and I'm still getting the error.   I have attached my JAVA code, 
> openOffice SDK path, and Java JDK path.
>
> Please help me in resolving this error.
>
> Thanks
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:api-unsubscribe@openoffice.apache.org
> For additional commands, e-mail:api-help@openoffice.apache.org