Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: clusardi2k@aol.com Newsgroups: comp.lang.java.programmer Subject: Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java Date: Tue, 19 Jun 2012 08:35:53 -0700 (PDT) Organization: http://groups.google.com Lines: 19 Message-ID: References: <34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com> NNTP-Posting-Host: 198.151.13.60 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1340120255 8539 127.0.0.1 (19 Jun 2012 15:37:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Jun 2012 15:37:35 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=198.151.13.60; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT User-Agent: G2/1.0 X-Received-Bytes: 1682 Xref: csiph.com comp.lang.java.programmer:15420 > new Main().nativePrint(); //LINE 7 If I comment out this line it runs perfectly. Again, the example I'm working on is this: http://netbeans.org/kb/docs/cnd/beginning-jni-linux.html At that linked page, JNIDemoJava.h has the prototype definition: JNIEXPORT void JNICALL Java_jnidemojava_Main_nativePrint (JNIEnv *, jobject); And JNIDemoJava.c has the body of that prototype: JNIEXPORT void JNICALL Java_jnidemojava_Main_nativePrint (JNIEnv *env, jobject obj) { printf("\nHello World from C\n"); }