Issue 80987 - Oo 2.2.0 client app in Netbeans fails at bootstrap()
Summary: Oo 2.2.0 client app in Netbeans fails at bootstrap()
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 23:01 UTC by rfpeake
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rfpeake 2007-08-23 23:01:34 UTC
OpenOffice.org 2.2.0 client application generated in Netbeans 5.5.1 fails at:
	XComponent xContext = Bootstrap.bootstrap();

com.sun.star.comp.helper.BootstrapException: no office executable found:
	at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java)

Linux platform is Ubuntu 7.04 (Feisty Fawn)

I installed OpenOffice to the default location and have not moved any files.
OpenOffice shell script (soffice) and soffice.bin are installed at:  	
/usr/lib/openoffice/program

SDK is at:	/usr/lib/openoffice/sdk.

Juh.jar, jurt.jar, jut.jar, ridl.jar, unoil.jar and JDK 1.6 are all included in
the project.

Is there a way to force bootstrap to find the required office executable?

What file exactly is the method looking for, and where does it expect the
executable to be found?
Comment 1 jsc 2007-08-27 09:05:14 UTC
i won't guarantee that the bootstrap mechanism works on Ubuntu. They do some
things different than the default OpenOffice which you can download from
www.openoffice.org.

You can try to insert a symbolic link /usr/bin/soffice -> 
/usr/lib/openoffice/program/soffice
or you can start the application with 
java -Dcom.sun.star.lib.loader.unopath=/usr/lib/openoffice/program -jar
myapplication.jar

Anyway I will check it again and will see what we can improve ...
Comment 2 jsc 2007-08-27 09:13:20 UTC
set target
Comment 3 jsc 2007-08-29 15:01:54 UTC
accepted
Comment 4 rfpeake 2007-09-21 17:02:04 UTC
Fix:

I resolved this bootstrap exception by implementing the solution detailed in 
the document OpenOffice NetBeans Integration from the openoffice.org wiki.  (I 
should have discovered this document sooner.)  The fix entails modifying the 
project properties by adding the Jar/Folder /usr/lib/openoffice/sdk to 
Libraries, designating com.sun.star.lib.loader.Loader as the main class in Run 
and passing the project's main class as the first argument.  A third 
modification, passing -
Dcom.sun.star.lib.loader.unopath="/usr/lib/openoffice/program" as a VM option 
does not appear to be necessary for my configuration (running a bare Client 
Application), which provides a symbolic link 
to /usr/lib/openoffice/program/soffice in the /usr/bin directory.

I hope this information will be useful to improving the api.  Many thanks for 
your assistance.
Comment 5 Martin Hollmichel 2007-11-09 17:28:21 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 6 jsc 2009-01-22 08:24:46 UTC
invalid
Comment 7 jsc 2009-01-22 08:25:06 UTC
closed