Stephan Bergmann ha scritto:
Sevastian `seva` Foglia wrote:
Hi all,
I have a problem with a Java extension that uses several jar.
It's a Java macro that using Scripting Framework.
It's not my first extension in Java and I know that I have to write a
parcel-descriptor file to specify classpath.
The problem is that some classes specified in the classpath of
parcel-descriptor aren't loaded and my Java code throws an exception
java.lang.ClassNotFoundException.
If I insert these library in the classpath of JVM (Tools -> Options ->
Java) all work correctly.
No idea what a "parcel-descriptor" is
This is parcel-descriptor.xml
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Scripting/Writing_Macros#Compiling_and_Deploying_Java_macros
but maybe (since you mention
"Scripting Framework") your problem is
<http://www.openoffice.org/issues/show_bug.cgi?id=91721>.
I don't know if my problem is ScriptFramework.jar.
OOo (JVM in this case) can't find and doesn't load a class specified in
my extension.
The library I have to use is for connect to JBoss services.
This is the error:
javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
Thanks.
Seva
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]