Problems with native libraries and Servoy Client

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?

Nicola, this should work. I compared it with my file and yours and I see nothing wrong.

But, have you signed the jar that you built your dll in? As far as I know the jar needs to be signed…

IT2BE:
Nicola, this should work. I compared it with my file and yours and I see nothing wrong.

But, have you signed the jar that you built your dll in? As far as I know the jar needs to be signed…

Ehm… what you mean by ‘signing your jar’? :oops:

When you read this you will know as much as I do… It’s very easy!

http://java.sun.com/docs/books/tutorial … gning.html

Hi Marcel, I tried to sign my jars but it still doesn’t work, I get the same error. :cry:

This thing is driving me crazy…

The funny thing is that now that I’ve signed the jars it works flawlessy on Windows but it still doesn’t work on MacOS!!

I’ve tried to use Java 1.4.2 instead of Java 5.0 but nope.

What’s in the mac os jar? Maybe you should mail me some stuff at my regular email address so I can try to help you?