Custom UNO script provider throwing "Bad insert element" error. [closed]

asked 2014-07-23 01:13:05 +0100

GatesDA gravatar image

I'm writing a script provider for Scala, using the Java helper classes as described here, but I get the message "Bad insert element" when I try to add it with the extension manager. Either IntelliJ or 7-zip is packaging it funny, because if I recompress it in 7-zip I instead get "com.sun.star.registry.CannotRegisterImplementationException: Cannot determine registration class!" as the error message.

I've added jurt.jar, unoil.jar, ridl.jar, and ScriptFramework.jar to the classpath, and I've tried it both with my dependencies packaged in my jar and linked externally. One post I saw said my class had to have the form "com.sun.star.script.provider.ScriptProviderFor[Language]" so I did that.

Alternately, if there's already Scala support that I missed, that would be even better.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2016-02-29 23:53:53.824925