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


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

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

From Arun GOPI <arun041@gmail.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 2012-07-16 03:07 -0700
Organization http://groups.google.com
Message-ID <18f1b739-8def-46c7-b583-0f0f14e10a5c@googlegroups.com> (permalink)
References <34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com> <b78c3a69-1841-4cba-a3fc-a51930b0b601@googlegroups.com> <nospam-ABC857.06344519062012@news.aioe.org>

Show all headers | View raw


On Tuesday, 19 June 2012 16:04:45 UTC+5:30, John B. Matthews  wrote:
> In article &lt;b78c3a69-1841-4cba-a3fc-a51930b0b601@googlegroups.com&gt;,
>  clusardi2k@aol.com wrote:
> 
> &gt; On Friday, June 15, 2012 2:57:42 PM UTC-4, (unknown) wrote:
> &gt; &gt; Could anyone give me a tutorial on how to use NetBeans 7.1.2 to 
> &gt; &gt; create a java project that uses JNI. I&#39;m looking for something with 
> &gt; &gt; all the detail I can get.
> &gt; &gt; 
> &gt; &gt; My small java project will use a small subset of the class&#39; in a 
> &gt; &gt; large C++ package.
> &gt; &gt; 
> &gt; &gt; Is there good documentation on doing this. Is there more than one 
> &gt; &gt; way to do it.  
> &gt; 
> &gt; I&#39;ll accept any SIMPLE (complete) JNI example that uses NetBeans 
> &gt; 7.1.2, a dot java with a static main, and invokes a C++ project.
> 
> I don&#39;t know anything that specific; I&#39;ve always relied on the JNI 
> Tutorial [1] and the JNI Specification [2] for specific problems. You 
> may not need it for your project, but this JNI_CreateJavaVM example [3] 
> may come in handy.
>  
> &gt; The various examples on the Internet tell me to create 2 projects, 
> &gt; but involve older versions of NetBeans. I&#39;m still trying, but I can&#39;t 
> &gt; get a simple &quot;Hello World&quot; to work!
> 
> Like this one [4]?
> 
> &gt; Where is a detailed example that uses NetBeans 7.1.2?
> 
> I&#39;ve never tried to do it entirely in NetBeans; I&#39;ve used `make` to 
> create the jnilib itself and a suitable ant target to build the Java 
> dependencies.
> 
> [1] &lt;http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html&gt;
> [2] &lt;http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/jniTOC.html&gt;
> [3] &lt;http://www.jguru.com/forums/view.jsp?EID=1264492&gt;
> [4] &lt;http://patriot.net/~tvalesky/jninative.html&gt;
> 
> -- 
> John B. Matthews
> trashgod at gmail dot com
> &lt;http://sites.google.com/site/drjohnbmatthews&gt;

refer :- http://www.ibm.com/developerworks/java/tutorials/j-jni/

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next 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