← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #262454]: Registred hotkeys causes java crash on mac

 

Question #262454 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262454

    Status: Answered => Open

Mauricio is still having a problem:
Thanks for the answer =)

I made a clean plugin project on eclipse, and a standard java project...

On the standard java project your exemple work fine, but on a clean
plugin's project not.

I looked in the MacHotkeyManager script, but I know almost nothing on C
java implementation... I can just guess that the problem is on the
"jam->GetEnv((void **)&env, JNI_VERSION_1_4);" from"callJavaMethode()"
since Eclipse's log point to that. A quick search on this topic and I
crossed by this link: http://stackoverflow.com/questions/12900695/how-
to-obtain-jni-interface-pointer-jnienv-for-asynchronous-calls

I'm guessing that the plugin runs on a different thread from Eclipse
itself causing the error... Can you (or anyone) give me any thought
about that?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.