Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.pionier.net.pl!news.supermedia.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: "Borneq" Newsgroups: comp.lang.java.programmer Subject: Re: JNI and GetFieldID Date: Fri, 6 Sep 2013 18:53:39 +0200 Organization: ATMAN - ATM S.A. Lines: 20 Message-ID: References: NNTP-Posting-Host: 91.239.205.62 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Trace: node1.news.atman.pl 1378486420 6021 91.239.205.62 (6 Sep 2013 16:53:40 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Fri, 6 Sep 2013 16:53:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.java.programmer:25234 User "Steven Simpson" > jclass cls = env->FindClass("net/sf/junace/ACEList"); Thanks, User "Mark" > It depends on what you are trying to do. Can you post a complete > (small) example? Expecially I want work with callbacks. I have written simple working demo: =======> https://github.com/borneq/JNIdemo for example here is: jclass cls = env->GetObjectClass(param1); jmethodID mid = env->GetMethodID(cls, "OnPercent", "(I)V"); My little puropose: expanding this example to callbacks with params, where params can be class, for example: =======> https://gist.github.com/borneq/6462783 void OnPercentEx(CmplxStruct cs);