Rony G. Flatscher wrote:
Hi,
In fact... officebean.jar is not required for the helloworld app....it
was suggested by the netbeans wizard, but it will work without it....
That is very interesting!
Could you please either send me the jar-file (or its included manifest
file) and the settings of CLASSPATH, PATH and LD_LIBRARY_PATH (from the
test machine)?
please stop the puzzling of arbitrary bits and bytes without the
background knowledge. The next one use it a little bit different and it
won't work again.
Always take a clean OO.org installation from the web side or an correct
installed/deployed OO.org version from a distribution.
If you want to run a simply client application using the simple
bootstrap mechanism you have to package the bootstrap helper class files
and the winreg.dll (for real platform independence) with your
application jar file and have to adapt the manifest file accordingly.
The NetBeans integration client wizard do exactly that. It simply
package a correct jar file for a simple client application, nothing
more. Ok, the wizard generates the bootstrap call in the main function,
but that's it.
The bootstrap mechanism creates an own classloader with the necessary
settings and instantiate the original main class with this new
classloader. The default office is searched on the system and depending
on the directory structure the necessary jar, executables ... are found
and started. The office gets started and the client communicate over a
named pipe connection with the office.
By using this mechanism you don't need a classpath or LD_LIBRARY_PATH.
simply start your application with java -jar HelloWorld.jar.
Searching the default office is sometimes a little bit tricky. On
windows we use the winreg.dll to read from the registry directly and on
the Unix systems we searched in /usr/bin/ for the correct link (can't
remember the exact search algorithm)
The bootstrap mechanism won't work when you copy the UNO jars form an
office installation to somewhere else or when you deploy them with your
application. Copy the jars make only sense when you want to connect to
an office on a different machine and in this case you bootstrap a little
bit different.
I agree that it is not 100% optimal and in an ideal world we would have
the URE available in the system and the office would register all
services there. We will see what we can provide in the future.
Juergen
TIA,
---rony
---------------------------------------------------------------------
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]