Rony G. Flatscher wrote:
Hi there,

tried to install a script provider extension (for the ooRexx scripting language) on DEV300/m23 using the version that works for OOo 2.4 (running on Windows XP SP 3, Sun's Java 1.6, the script provider jar to install as an extension is located outside of the OOo directories).

However, I get the following exception (typed from the popup window, as it is not possible to copy the content to the clipboard):

   (com.sun.star.uno.RuntimeException) { { Message = "[jni_uno bridge
   error] UNO calling Java method writeRegistryInfo: non-UNO exception
   occurred: java.lang.NoClassDefFoundError:
   com/sun/star/script/framework/container/ScriptMetaData
   \X000a java stack trace:
   \X000a java.lang.NoClassDefFoundError:
   com/sun/star/script/framework/container/ScriptMetaData
   \X000d\X000a\X0009 at java.lang.Class.getDelcaredMethods(Native
   Method)...

The public ScriptMetaData class is part of "ScriptingFramework.jar".
[The same package can be successfully installed and employed on OOo 2.4.1.]

Looking at the MANIFEST.MF files of the script providers for BeanShell, Java and JavaScript, I noticed that they have a "Class-Path" entry which lists "ScriptingFramework.jar". Adding that information to MANIFEST.MF did not change the behaviour/error on DEV300/m23.

You should double check the file name & path. The JAR file is "ScriptFramework.jar". And the path is relative to your JAR.

So if your JAR file is in a directory other than <OOo App>/.../classes where ScriptFramework.jar is located, then I would suggest copying ScriptFramework.jar into the one where you put your JAR.

As DEV300 has changed the configuration and not being able to find any related hints/infos, I hope that someone on this list may be able to help to come by this situation.

That the classpath handling of com/sun/star/script/framework/* has changed yet again makes me happy that I simply eliminated dependence on it for GroovyForOpenOffice and as a result my extension works for all OOo 2.* and 3.0. It seems a bit wasteful to duplicate those classes, but it is clear that the OOo developers are treating them as internal to OOo (which is what Juergen said last year when this came up with 2.3).

http://www.nabble.com/Re%3A-Script-framework%3A-docs-IDL-for-%22com.sun.star.script.framework%22---p12858342.html

Jim

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

Reply via email to