Christmas is coming soon! To thank for the support from all our dear customers, Christmas promotional activity is going on in JavaCardOS online store. For more activities details, please check this post.

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 :162
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: 35
Joined: Wed Jun 20, 2018 4:06 am
Points :216
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: 35
Joined: Wed Jun 20, 2018 4:06 am
Points :216
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 2 guests

JavaCard OS : Disclaimer