Page 1 of 1

Geting Error on getIncomingLength() and getOffsetCdata()

Posted: Sat Oct 21, 2017 10:11 pm
by arasn
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

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

Posted: Wed Nov 15, 2017 4:31 am
by yangwei
did you import javacard.framework .

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

Posted: Tue Nov 21, 2017 5:08 am
by roundtable
You should add following statement at beginning of your code:
import javacard.framework.*;

Try it