Wednesday, 15 February 2012

JNI use in UMDF driver -



JNI use in UMDF driver -

i have umdf driver , phone call functions in .jar files found connection between driver (pcsc reader) , eclipse plugin (jcop).

i called java functions (from .jar) in c++ main using jni can write jni code in umdf driver ? if yes, appreciate guidelines or point of views how approach subject ...

there aren't much info subject when google info much appreciated ! give thanks you.

i don't have umdf driver experience, however, after reading on view don't see reason why jni not able communicate straight reflector. don't think able communicate device stack or manager. so, if understand correctly, should have driver load independently of jni , utilize jni talk driver via reflector.

on more general note, recommend keeping jni code simple possible. jni code functions java <=> native translation layer. of complexity , processing done in backing library can run independently of java. doing that, can debug native code gdb or visual studio without having jump around running jvm. can take either ship stand lone library native dependency , add together the systems library load path or can link jni library statically. have had results using lto , static linking in exact scenario.

jni driver umdf

No comments:

Post a Comment