Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UnsatisfiedLinkError on native method only when running in Applet.(signed)

843829Jun 27 2008 — edited Jun 30 2008
Hello, 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2008
Added on Jun 27 2008
3 comments
420 views