problem with jcop sample
843851Mar 9 2003 — edited May 15 2003i'm using winxp and the updated jcop 2.2 with the ibm 1.4 jdk provided
with jcop. there is a sample application included with jcop
"countersample"
where an applet is loaded on the card, and ran in the jcop sim, and
i am able to talk to the card applet via an external application.
the jcop sample used the following code to do this:
import com.ibm.jc.*;
JCTerminal term = null;
String termName = Remote;
String termPara = null;
try {
term = JCTerminal.getInstance(termName, termPara);
term.open(); //throws exception
term.waitForCard(5000);
}catch(Exception e) {}
an exception is thrown during term.open().
the exception is:
"Failed to open [localhost:8050]: Connection refused: connect"
can anyone help me fix this?
or is there another way to talk to the simulated jcop card/terminal?
thanks in advance.
jason