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!

problem with jcop sample

843851Mar 9 2003 — edited May 15 2003
i'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2003
Added on Mar 9 2003
14 comments
184 views