java.lang.UnsatisfiedLinkError: com.sun.javacard.impl.NativeMethods.getCurr
843851Feb 15 2007 — edited Feb 20 2009I 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.