Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25230

JNI and GetFieldID

Path csiph.com!usenet.pasdenom.info!aioe.org!goblin2!goblin.stu.neva.ru!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From "Borneq" <borneq@antyspam.hidden.pl>
Newsgroups comp.lang.java.programmer
Subject JNI and GetFieldID
Date Thu, 5 Sep 2013 17:05:26 +0200
Organization ATMAN - ATM S.A.
Lines 23
Message-ID <l0a6jn$9t4$1@node1.news.atman.pl> (permalink)
NNTP-Posting-Host 91.239.205.62
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="utf-8"; reply-type=original
Content-Transfer-Encoding 7bit
X-Trace node1.news.atman.pl 1378393527 10148 91.239.205.62 (5 Sep 2013 15:05:27 GMT)
X-Complaints-To usenet@atman.pl
NNTP-Posting-Date Thu, 5 Sep 2013 15:05:27 +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:25230

Show key headers only | View raw


I have class:
package net.sf.junace;
public class ACEList {
ACEFiles files; // specifies files to be listed;
byte[] reserved; // 64 bytes has to be filled with zeroes
}
I call native :
ACEList aaa = new ACEList();
unACE.nativeACEList("abc", aaa);

in c++ is:
JNIEXPORT void JNICALL Java_net_sf_junace_UnACE_nativeACEList
(JNIEnv *env, jobject jObj1, jstring archiveName, jobject jObj2)
which field I must read?
jclass cls1 = env->GetObjectClass(jObj1);
or
jclass cls2 = env->GetObjectClass(jObj2);
?
jfieldID fid = env->GetFieldID(cls1 or cls2, "something", 
"Lnet/sf/junace/ACEList;");
what I must choose cls1 or cls2
what I must pass as second argument as "something"? 

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-05 17:05 +0200
  Re: JNI and GetFieldID Mark <i@dontgetlotsofspamanymore.invalid> - 2013-09-06 10:25 +0100
  Re: JNI and GetFieldID Steven Simpson <ss@domain.invalid> - 2013-09-06 16:36 +0300
    Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-06 18:53 +0200
      Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-06 20:44 +0200
        Re: JNI and GetFieldID Steven Simpson <ss@domain.invalid> - 2013-09-06 22:34 +0300
          Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-06 23:06 +0200
      Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-07 22:27 +0200
        Re: JNI and GetFieldID Steven Simpson <ss@domain.invalid> - 2013-09-08 10:24 +0100
          Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-08 12:29 +0200
            Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-08 22:45 +0200
            Re: JNI and GetFieldID Steven Simpson <ss@domain.invalid> - 2013-09-13 13:31 +0100
              Re: JNI and GetFieldID "Borneq" <borneq@antyspam.hidden.pl> - 2013-09-14 18:50 +0200
              Re: JNI and GetFieldID "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-09-19 15:02 +0100

csiph-web