Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Geting Error on getIncomingLength() and getOffsetCdata()

JavaCard Applet Development Related Questions and Answers.
arasn
Posts: 3
Joined: Sat Oct 14, 2017 3:09 am
Points: 84
Contact:

Geting Error on getIncomingLength() and getOffsetCdata()

Postby arasn » Sat Oct 21, 2017 10:11 pm

Dears,
I am geting an Error at compile time, with using getOffsetCdata() as well as getIncomingLength

in spite that I used import: import javacardx.apdu.*;

line 178: short lc = apdu.getIncomingLength();


Code: Select all

[color=#FF0000]C:\JAVACA~1\SDK\Sample\GPSample\src\GPSample\Sample.java:178: cannot find symbol[/color]
symbol  : method getIncomingLength()
location: class javacard.framework.APDU
        short lc = apdu.getIncomingLength();
                       ^


Hope one of you know how to solve and let to fix it.

Best Regards

yangwei
Posts: 1
Joined: Thu Sep 22, 2016 11:15 pm
Points: 24
Contact:

Re: Geting Error on getIncomingLength() and getOffsetCdata()

Postby yangwei » Wed Nov 15, 2017 4:31 am

did you import javacard.framework .

roundtable
Posts: 14
Joined: Mon Sep 18, 2017 9:52 pm
Points: 150
Contact:

Re: Geting Error on getIncomingLength() and getOffsetCdata()

Postby roundtable » Tue Nov 21, 2017 5:08 am

You should add following statement at beginning of your code:
import javacard.framework.*;

Try it


Return to “Questions & Answers”

Who is online

Users browsing this forum: No registered users and 3 guests

JavaCard OS : Disclaimer