Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.nask.pl!news.nask.org.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 20:44:07 +0200 Organization: ATMAN - ATM S.A. Lines: 19 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: 8bit X-Trace: node1.news.atman.pl 1378493049 13145 91.239.205.62 (6 Sep 2013 18:44:09 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Fri, 6 Sep 2013 18:44:09 +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:25235 Użytkownik "Borneq" napisał w wiadomości news:l0d1ak$5s5$1@node1.news.atman.pl... > =======> https://github.com/borneq/JNIdemo > =======> https://gist.github.com/borneq/6462783 public interface ICallback { void OnPercent(int percent); void OnPercentEx(CmplxStruct cs); } public class CmplxStruct { int fieldI; String str; } How place number and string? jmethodID mid; mid = env->GetMethodID(cls, "OnPercentEx", "(LCmplxStruct;)V"); env->CallVoidMethod(param1, mid, SOMETHING); how fill SOMETHING?