Christmas is coming!

To celebrate the new year and thank for the support from all our dear customers, Christmas promotional activity is being held in JavaCardOS online store.

During the event, you can enjoy many promotional activities - High Discount on JavaCardOS products,Lucky Draw,Double forum Points.

Come to choose your own Christmas gift and try your luck 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: 8
Joined: Mon Sep 18, 2017 9:52 pm
Points: 74
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: Google [Bot] and 2 guests

JavaCard OS : Disclaimer