I’ve written my first plugin, it works pretty well in Developer but when I try to use it from a client I get the following error:
Unable to load resource: http://127.0.0.1:8080/plugins/myPlugin/myLib.jnilib.jar
I use some external libraries to have the plugin work, the structure is the following:
myPlugin.jar
myPlugin.jar.jnlp
myPlugin (Folder):
external.jar
myLib.jnilib.jar
myLib.dll.jar
The myLib.*.jars are created using the “jar cf” command on the original libraries, the jnlp file is the following:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="%%serverURL%%"
href="/servoy-client/plugins/myPlugin.jar.jnlp">
<information>
<title>sintpro Plugin</title>
<vendor>Servizi Integrati Professionali s.a.s.</vendor>
<offline-allowed/>
</information>
<resources>
<jar href="/plugins/myPlugin.jar" download="eager"/>
<jar href="/plugins/myPlugin/external.jar" download="eager"/>
</resources>
<resources os="Windows">
<nativelib href="/plugins/myPlugin/myLib.dll.jar" download="eager"/>
</resources>
<resources os="Mac OS X">
<nativelib href="/plugins/myPlugin/myLib.jnilib.jar" download="eager"/>
</resources>
<component-desc/>
</jnlp>
I’ve tried to empty JWS cache, to include an extra linefeed in the manifest file for the libraries jars, I’ve read all forum posts and googled around but I can’t get it to work…
Anyone can help?