> I have a small java application that reads the registry through the use
> of a .dll. I am packaging this app in a jar and then deploying it via
> java web start. When I run things locally, I have no problems, but when
> I deploy it through javaws, I get errors about accessing methods within
> the .dll. Is there any trick to creating a jar with the dll for
> deployment via javaws.
Are you talking about
(1) a .dll deployed together with your java app like described in
http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html#resources
or
(2) a .dll already existing in the windows systems directories ?
If (1): JavaWebStart requires your application to be signed by a
certificate, otherwise it won't work.
If (2): I don't know

Signature
Thomas
trpost@gmail.com - 28 Jul 2006 00:12 GMT
I have signed the .jar's, and tried creating a separate .jar with just
the dll and updated the .jnlp with the following:
<nativelib href="winlib.jar" download="eager"/>
When I launch the app via javaws, I get the following error:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: openSubKey
at com.ice.jni.registry.RegistryKey.openSubKey(Native Method)
.....
If I just don't include the winlib.jar on the server when I launch the
application, I get the same error, so it seems like the call to the
method in the .dll, just doesn't know where to find the .dll. I am
guessing it was found previously based on the classpath, but when I
deploy it via javaws, I cannot supply a classpath.
I have tried packaging a single .jar with the .dll and no luck..
help....
Thanks
> > I have a small java application that reads the registry through the use
> > of a .dll. I am packaging this app in a jar and then deploying it via
[quoted text clipped - 11 lines]
> certificate, otherwise it won't work.
> If (2): I don't know