Hi all,
I am trying to write a host application in Eclipse using JCOP offcard API and keep getting the following error
java.lang.UnsatisfiedLinkError: no jct in java.library.path
java.lang.UnsatisfiedLinkError: setup
at com.ibm.jc.terminal.NativeJCTerminal.setup(Native Method)
at com.ibm.jc.terminal.NativeJCTerminal.<init>(Unknown Source)
at com.ibm.jc.JCTerminal.getInstance(Unknown Source)
at HostApplication.main(HostApplication.java:49)
The problem seems to be ocurring during the following section of code
try {
/**********************************************error ocurring here****************/
term = JCTerminal.getInstance(termName, termPara);
term.open();
term.waitForCard(5000);
}catch(Exception e) {
System.out.println("can't find/open/connect/reset smartcard/reader: " + e.getMessage());
System.exit(1);
}
Now, I have read the forum and did come across this problem and some solutions but all were related to running the java class file from the command line. What I want to know is how I add the path to jct.dll through the Eclipse environment.
Thanks in advance,
Ann