Excited to tell you that our welfare activity has been upgraded - Paying only $5.00 + Freight to get JCOP J3H145 card and A40CR card.
Please check this post for more details.

Moreover, if you want to get Free Samples by Paying Freight only , please check this page.

non-static method isActive() cannot be referenced from a static context

JavaCard Applet Development Related Questions and Answers.
shameem
Posts: 7
Joined: Sat May 05, 2018 1:26 am
Points :158
Location: bangalore
Contact:

non-static method isActive() cannot be referenced from a static context

Post by shameem » Sat Aug 18, 2018 8:41 am

Hi, good evening everyone
Actually i am facing a problem with this code

public void checkCdCvm(){
if(isCdcvmType() ==true){
if(CVM.isActive()){
// GP API CDCVM Validation
} else {
// CVM Flow 2
}
} else {
// TODO CVM flow 2 step B
}
}

that is : non-static method isActive() cannot be referenced from a static context

Thanks in Advance
Shameem Ahamad

happy123654
Posts: 28
Joined: Wed Jun 20, 2018 4:06 am
Points :154
Contact:

Re: non-static method isActive() cannot be referenced from a static context

Post by happy123654 » Thu Aug 30, 2018 6:22 am

I think that you should build an instance object for CVM.

happy123654
Posts: 28
Joined: Wed Jun 20, 2018 4:06 am
Points :154
Contact:

Re: non-static method isActive() cannot be referenced from a static context

Post by happy123654 » Thu Aug 30, 2018 6:22 am

I think that you should build an instance object for CVM.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 3 guests

JavaCard OS : Disclaimer