UnsatisfiedLinkError on native method only when running in Applet.(signed)
843829Jun 27 2008 — edited Jun 30 2008Hello, I have an applet that calls native methods. The native methods are defined in classes that reside in a jar file. When I use this jar file in a Swing application, it works fine. But when my applet uses the same jar file, I get an UnsatisfiedLinkError:
"java.lang.UnsatisfiedLinkError: com.epaysol.ranger.pt6100.Ranger.__JComCreateObject(Z)Z
at com.epaysol.ranger.pt6100.Ranger.__JComCreateObject(Native Method)
at com.epaysol.ranger.pt6100.Ranger.<init>(Ranger.java:56)
at com.epaysol.ranger.pt6100.Ranger.<init>(Ranger.java:44)
at com.epaysol.applet.RangerCheckReader.start(RangerCheckReader.java:317)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)"
The System.loadLibrary() call is working....it is only when the actual native method is invoked that I get the error, and then ONLY when executed in an Applet. The applet is signed, so permissions shouldn't be an issue, right? Any ideas?