Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7127
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.szaf.org!news.gnuher.de!news.enyo.de!not-for-mail |
|---|---|
| From | Florian Weimer <fw@deneb.enyo.de> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JNI accessing a class that instantiates another class |
| Date | Mon, 15 Aug 2011 19:06:26 +0200 |
| Lines | 13 |
| Message-ID | <871uwma9kd.fsf@mid.deneb.enyo.de> (permalink) |
| References | <d48afffd-0ff8-4cc4-a63b-45ffe01224e9@o11g2000yql.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Trace | ruchba.enyo.de 1313427986 22524 172.17.135.6 (15 Aug 2011 17:06:26 GMT) |
| X-Complaints-To | news@enyo.de |
| Cancel-Lock | sha1:TyEukTuY5KfWZS4srev40oL+4M4= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7127 |
Show key headers only | View raw
* Danno: > I'm taking my first stab at JNI. I have a main Java class that > instantiates another class. In my C++ code, I am using the FindClass > function for the main class and calling the method in the main class > using GetStaticMethodId/CallStaticIntMethod. The C++ code is > successfully finding the Java class and calling the method that I > specified in the GetStaticMethoId function. The only problem is, when > the Java class attempts to create an instance of this second, inner > class, it dies. I don't get an error, it just doesn't work. Please post code demonstrating the problem. Have you checked if -Xcheck:jni reports anything useful?
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
JNI accessing a class that instantiates another class Danno <danmwall-google@yahoo.com> - 2011-08-15 07:55 -0700
Re: JNI accessing a class that instantiates another class Florian Weimer <fw@deneb.enyo.de> - 2011-08-15 19:06 +0200
Re: JNI accessing a class that instantiates another class Danno <danmwall-google@yahoo.com> - 2011-08-15 12:28 -0700
Re: JNI accessing a class that instantiates another class Florian Weimer <fw@deneb.enyo.de> - 2011-08-15 21:50 +0200
Re: JNI accessing a class that instantiates another class Roedy Green <see_website@mindprod.com.invalid> - 2011-08-15 15:10 -0700
csiph-web