java service wrapper with offline activation ?

I have implement a batch file to do online and offline activate / deactivate and use java service wrapper to pack and run my application with Lime.those are my test stepsstep 1:restore a pure os for teststep 2:run batch file to do online/offline activatestep 3:run my applicationstep 4: if application than run batch file to do online/offline deactivatebut I got some situations as below

? Windows LinuxOnline V VOffline X V

when use offline activation in windows, batch file display activate (e.g. IsActivated()==true ) but application display not activate yet (e.g. IsActivated()==false)

any idea why window have different behavior when use offline

develop with java on v3.2.2

Thanks

How is your batch files checking if you're activated? Are you using a java console program and then your Java application? I need a bit more information to help you.

Sorry !!I found the question.Use TA_SYSTEM flags in CheckAndSavePKey function and it's work.

Thanks