Hi Raphael,
is it correct that you simply copy the code that was generated by your
initial UNO client application into another project? If yes, the problem
probably is that you miss the bootstrap glue code in your other project.
Go back to the UNO client application and check the the generated jar
file and the manifest file. You will detect some additional class files
in the jar that are not part of your project. They are coming from the
SDK and are bundled with your client jar. This code dose some magic
stuff behind the scenes to find an office on the local machine, prepare
a well configured classloader with the necessary office jars, load the
initial main class with this loader and connect to the office via a
named pipe. see also the necessary manifest file entries to delegate the
original main class and use another Loader class as new main.
I think i should extend the wiki page related to this NB project type
with some more infos. I am currently not sure if is there or not but
anyway you have to extend your project this way that it supports the
simple bootstrap mechanism.
Juergen
Raphael Specht wrote:
Hello,
i have a existing Netbeansproject with MySQL Connections and
JFreeReports. Now, i want to control OOo Writer. I installed the OOo
Plugin for Netbeans and first i wrote a testprogram with a New "OOo2.3
Client App". This works fine, and indepent. I can copy the dist-Dir
wherever i want and the Project runs fine. When i copy the Code to my
"big Project" and include the OOo2.3 lib, i can also run all functions
when i run the project from Netbeans. When i Build it and run it over
"Start -> Run -> java -jar "C:\Dokumente und
Einstellungen\mcfloppy\Eigene Dateien\NetBeansProjects\boo\dist\boo.jar"
" so it doesnt work. I can use all functions from my old program, but
the OOo Call cancel with:
27.02.2008 12:15:26 boo.BooView jButton3ActionPerformed
SCHWERWIEGEND: null
com.sun.star.comp.helper.BootstrapException: no office executable found!
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:253)
at boo.BooView.jButton3ActionPerformed(BooView.java:1375)
at boo.BooView.access$2100(BooView.java:61)
at boo.BooView$17.actionPerformed(BooView.java:593)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
So i hope you can help me.
Greets Raphael Specht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]