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


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

Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java

From "John B. Matthews" <nospam@nospam.invalid>
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 2012-06-23 00:16 -0400
Organization The Wasteland
Message-ID <nospam-E94DC8.00165023062012@news.aioe.org> (permalink)
References <34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com> <8165dad1-1dd1-40cc-929c-344ff7d7cb5c@googlegroups.com> <nospam-008072.22355621062012@news.aioe.org> <js0su7$a8u$1@news.albasani.net>

Show all headers | View raw


In article <js0su7$a8u$1@news.albasani.net>, Lew <noone@lewscanon.com> 
wrote:

> John B. Matthews wrote:
> > Lew wrote:
> >> (unknown) wrote:
> >>> Could anyone give me a tutorial on how to use NetBeans 7.1.2 to 
> >>> create a java project that uses JNI. I'm looking for something 
> >>> with all the detail I can get.
> >>>
> >>> My small java project will use a small subset of the class' in a 
> >>> large C++ package.
> >>>
> >>> Is there good documentation on doing this. Is there more than one 
> >>> way to do it. Does using a jar file (containing the C++ class') 
> >>> ease the process at all.
> >>
> >> Why does my Web viewer show all the messages as deleted?
> >>
> >> 90% of the value of the newsgroups is in the archival of 
> >> questions, explorations and answers.
> >>
> >> Failure to archive is a problem.
> >
> > The OP's behavior is disappointing. My fading memory of a cursory 
> > reading mentioned trouble building a shared library using mingw, 
> > covered here:<http://mingw.org/wiki/sampleDLL>.
> >
> > For reference, Mac OS X/Darwin goes something like this:
> >
> > gcc -dynamiclib -framework JavaVM -o libhello.jnilib hello.o
> 
> albanasi.net still has all the messages. Usenet prevails where the 
> Web-accessed service allowed the deletion of the messages.

As does aioe.net; thank you for the reminder.

> To the OP: deleting your messages was not only disappointing and 
> unhelpful, but pointless as they are not actually deleted.

Recalling a time when summaries were more common:

General:
<http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html>
<http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/jniTOC.html>

Examples:
<http://www.jguru.com/forums/view.jsp?EID=1264492>
<http://patriot.net/~tvalesky/jninative.html>

NetBeans:
<http://cnd.netbeans.org/docs/jni/beginning-jni-win.html>
<http://netbeans.org/kb/docs/cnd/beginning-jni-linux.html>

MinGW:
<http://mingw.org/wiki/sampleDLL>
<http://netbeans.org/community/releases/69/cpp-setup-instructions.html#mingw>

Mac OS X:
<http://stackoverflow.com/a/1731221/230513>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

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


Thread

Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-15 11:57 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-18 21:03 -0700
    Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java "John B. Matthews" <nospam@nospam.invalid> - 2012-06-19 06:34 -0400
      Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java Arun GOPI <arun041@gmail.com> - 2012-07-16 03:07 -0700
      Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java Arun GOPI <arun041@gmail.com> - 2012-07-16 03:09 -0700
  Re: Using NetBeans 7.1.2 JNI: Windows 7 C and C++ Compiler Options clusardi2k@aol.com - 2012-06-19 06:01 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 06:11 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 06:58 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 07:18 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 07:25 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 08:27 -0700
    Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 08:35 -0700
      Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 08:53 -0700
        Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-19 09:20 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java clusardi2k@aol.com - 2012-06-20 10:56 -0700
  Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java Lew <lewbloch@gmail.com> - 2012-06-20 11:49 -0700
    Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java "John B. Matthews" <nospam@nospam.invalid> - 2012-06-21 22:35 -0400
      Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java Lew <noone@lewscanon.com> - 2012-06-21 21:39 -0700
        Re: Using NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java "John B. Matthews" <nospam@nospam.invalid> - 2012-06-23 00:16 -0400

csiph-web