In order to thank you for all members' support of our website, we are holding new events - Getting Free Samples by Paying Freight only.
Want to get free samples? Please check this post for more details.

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

JavaCard Applet Development Related Questions and Answers.
shameem
Posts: 6
Joined: Sat May 05, 2018 1:26 am
Points :112
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: 19
Joined: Wed Jun 20, 2018 4:06 am
Points :98
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: 19
Joined: Wed Jun 20, 2018 4:06 am
Points :98
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 6 guests

JavaCard OS : Disclaimer