Skip to Main Content

Java Card

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!

java.lang.UnsatisfiedLinkError: com.sun.javacard.impl.NativeMethods.getCurr

843851Feb 15 2007 — edited Feb 20 2009
I am new to Java Card and did all searches to solve this problem but didn't get a solution.

I am trying to run a Java Card client application using JCRMI. I was able to write and compile all the sample classes in the Java Card Kit programming notes. I have generated the stub file and did all the classpath settings.

I am using JCWDE to run the card applet, the AID of my applet is on the first line of my .app file.

After running the client it successfully selects the applet, but when it tries to invoke a remote object i receive the following exceptions:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.javacard.impl.NativeMethods.getCurrentContext()B
at com.sun.javacard.impl.NativeMethods.getCurrentContext(Native Method)
at com.sun.javacard.impl.PrivAccess.getCurrentAppID(PrivAccess.java:454)

at javacard.framework.CardException.<init>(CardException.java:46)
at javacard.framework.UserException.<init>(UserException.java:49)

.....

Plz who can figure out what could be the problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2009
Added on Feb 15 2007
1 comment
323 views