Java Web Start applet - native library fails to load on second try -
i have applet loaded via java web start in browser. applet uses few native libraries things microsoft office interop , active directory communication.
here's jnlp
:
<?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.5+"> <information> <title>my applet</title> <vendor>my vendor</vendor> </information> <security> <all-permissions/> </security> <resources os="windows"> <!-- application resources --> <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" /> <jar href="applets/myapplet.jar" main="true" /> <nativelib href="applets/jacob.jar"/> <nativelib href="applets/com4j.jar"/> </resources> <applet-desc name="my applet" main-class="com.applet.myapplet" width="770" height="825"> </applet-desc> </jnlp>
when applet loaded, fine , libraries work expected. however, if close applet , re-open it, error in java console:
unsatisfiedlinkerror: no jacob in java.library.path unsatisfiedlinkerror: no com4j in java.library.path
if clear java cache, begins working again. however, works 1 more time, after fails same error until clear java cache again.
Comments
Post a Comment