Jochen Staerk wrote:
Thanks for answering/Hi,

the windows version of my app does not work.
I would use custom classloader approach.
OK, lets go for it.

problem is how does Java locate the JARs (its not only
officebean.jar).Also the officebean.jar must be located first. In the
SDK there should be an example of an example of a custom classloader,
that can be used by the application and which can then load the
officebean, etc.

I grepped through the SDK, just for me to know I'm after the right
thing, do you mean the UnoLoader
docs/java/ref/com/sun/star/lib/unoloader/UnoLoader.html? Do you remeber
anything I could grep for to find this example?

The source code is in project odk, file odk/source/com/sun/star/lib/loader/Loader.java
and the SDK contains the compiled class:

sdk/classes/com/sun/star/lib/loader/Loader.class

The Loader class has a main method. It uses a custom classloader to load all other classes. It also loads and invokes the actual application class and runs its main method. To do that the name of the application class must be contained in the manifest.mf. The best thing is to have a look at the code yourself and adapt it as you see fit.

Joachim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to