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


Groups > comp.lang.java.programmer > #15306 > unrolled thread

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

Started byclusardi2k@aol.com
First post2012-06-15 11:57 -0700
Last post2012-06-23 00:16 -0400
Articles 19 — 5 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

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

Fromclusardi2k@aol.com
Date2012-06-15 11:57 -0700
SubjectUsing NetBeans 7.1.2 JNI: Where Is a Good Tutorial on How to Invoke C++ from Java
Message-ID<34c3ac13-bfbe-44e1-befb-09a438cc4f8b@googlegroups.com>
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.

Help,
Chris L.

[toc] | [next] | [standalone]


#15407

Fromclusardi2k@aol.com
Date2012-06-18 21:03 -0700
Message-ID<b78c3a69-1841-4cba-a3fc-a51930b0b601@googlegroups.com>
In reply to#15306
On Friday, June 15, 2012 2:57:42 PM UTC-4, (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.  

I'll accept any SIMPLE (complete) JNI example that uses NetBeans 7.1.2, a dot java with a static main, and invokes a C++ project.

The various examples on the Internet tell me to create 2 projects, but involve older versions of NetBeans. I'm still trying, but I can't get a simple "Hello World" to work!

Where is a detailed example that uses NetBeans 7.1.2?

Thanks,

[toc] | [prev] | [next] | [standalone]


#15409

From"John B. Matthews" <nospam@nospam.invalid>
Date2012-06-19 06:34 -0400
Message-ID<nospam-ABC857.06344519062012@news.aioe.org>
In reply to#15407
In article <b78c3a69-1841-4cba-a3fc-a51930b0b601@googlegroups.com>,
 clusardi2k@aol.com wrote:

> On Friday, June 15, 2012 2:57:42 PM UTC-4, (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.  
> 
> I'll accept any SIMPLE (complete) JNI example that uses NetBeans 
> 7.1.2, a dot java with a static main, and invokes a C++ project.

I don't know anything that specific; I'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.
 
> The various examples on the Internet tell me to create 2 projects, 
> but involve older versions of NetBeans. I'm still trying, but I can't 
> get a simple "Hello World" to work!

Like this one [4]?

> Where is a detailed example that uses NetBeans 7.1.2?

I've never tried to do it entirely in NetBeans; I've used `make` to 
create the jnilib itself and a suitable ant target to build the Java 
dependencies.

[1] <http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html>
[2] <http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/jniTOC.html>
[3] <http://www.jguru.com/forums/view.jsp?EID=1264492>
[4] <http://patriot.net/~tvalesky/jninative.html>

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

[toc] | [prev] | [next] | [standalone]


#16040

FromArun GOPI <arun041@gmail.com>
Date2012-07-16 03:07 -0700
Message-ID<18f1b739-8def-46c7-b583-0f0f14e10a5c@googlegroups.com>
In reply to#15409
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/

[toc] | [prev] | [next] | [standalone]


#16041

FromArun GOPI <arun041@gmail.com>
Date2012-07-16 03:09 -0700
Message-ID<9f258a07-5772-4287-9834-96f276f4bf31@googlegroups.com>
In reply to#15409
refer :- http://www.ibm.com/developerworks/java/tutorials/j-jni/

[toc] | [prev] | [next] | [standalone]


#15413 — Re: Using NetBeans 7.1.2 JNI: Windows 7 C and C++ Compiler Options

Fromclusardi2k@aol.com
Date2012-06-19 06:01 -0700
SubjectRe: Using NetBeans 7.1.2 JNI: Windows 7 C and C++ Compiler Options
Message-ID<d5ac0377-72e2-4384-9b48-df4a1ca624fe@googlegroups.com>
In reply to#15306
Two Questions:

(1) Here's an example that I've been trying to follow:

http://netbeans.org/kb/docs/cnd/beginning-jni-linux.html

For me, there are two problems with this example. One, it is for "Linux". I'm working on Windows 7 and have to use C compiler options to get this example to work. At the bottom is a direct quote from the linked Page. What should I use in place of "-shared -m32" for a C compiler on Windows 7.

(2) Second, what would be the g++ compiler options if I use a C++ project in place of the C project example.

Thanks,

Direct Quote from Page:

Beginning JNI with NetBeans IDE and C/C++ Plugin on Linux

Setting Up a New C/C++ Dynamic Library Project

7. 7.Find the Command Line area of the C Compiler options. Click in the text field of the Additional Options property and type -shared -m32.

The -shared option tells the compiler to generate a dynamic library.
The -m32 option tells the compiler to create a 32-bit binary. By default on 64-bit systems the compiled binaries are 64-bit, which causes a lot of problems with 32-bit JDKs. 

[toc] | [prev] | [next] | [standalone]


#15414

Fromclusardi2k@aol.com
Date2012-06-19 06:11 -0700
Message-ID<133be737-12e9-4e28-bcfd-f0f8c2b9d63d@googlegroups.com>
In reply to#15306
On Friday, June 15, 2012 2:57:42 PM UTC-4, (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.
> 
> Help,
> Chris L.

Here are the compilers (and make command) that I'm going to use:

Software or Resource Version Tested Description 

gcc 3.4.5 MinGW C compiler 
g++ 3.4.5 MinGW C++ compiler 
gdb 6.8 MinGW GNU debugger 
make 3.79.1 MSYS make utility

Note that MinGW make is not supported 

http://netbeans.org/community/releases/69/cpp-setup-instructions.html#mingw

[toc] | [prev] | [next] | [standalone]


#15415

Fromclusardi2k@aol.com
Date2012-06-19 06:58 -0700
Message-ID<267bdc27-ad97-489f-ae3f-3b8f94b26880@googlegroups.com>
In reply to#15306
Using the "-shared -m32" options, NetBeans does create the dot dll.

I put the folder containing the dot dll into the PATH environment variable.

But, when I press F6 to run, I get the following error message:

run:
java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: libJNIDemoCdl
	at java.lang.Runtime.load0(Runtime.java:789)
	at java.lang.System.load(System.java:1059)
	at jnidemojava.Main.<clinit>(Main.java:11)
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

Below is Main.java file. I tried various paths to the dll:
-----
package jnidemojava;

public class Main {
    private native void nativePrint();
    
    public static void main(String[] args) {
        new Main().nativePrint();
    }
    
    static {
        System.load("libJNIDemoCdl");
        System.load("libJNIDemoCdl");
        System.load("libJNIDemoCdl");
        System.load("libJNIDemoCdl.dll");
        System.load("libJNIDemoCdl.dll");
        System.load("libJNIDemoCdl.dll");
        System.load("C:/Users/THE_USER/Documents/NetBeansProjects/JNIDemoCdl/dist/libJNIDemoCdl");
        System.load("C://Users//THE_USER//Documents//NetBeansProjects//JNIDemoCdl//dist//libJNIDemoCdl");
        System.load("C:\\Users\\THE_USER\\Documents\\NetBeansProjects\\JNIDemoCdl\\dist\\libJNIDemoCdl");
        System.load("C:/Users/THE_USER/Documents/NetBeansProjects/JNIDemoCdl/dist/libJNIDemoCdl.dll");
        System.load("C://Users//THE_USER//Documents//NetBeansProjects//JNIDemoCdl//dist//libJNIDemoCdl.dll");
        System.load("C:\\Users\\THE_USER\\Documents\\NetBeansProjects\\JNIDemoCdl\\dist\\libJNIDemoCdl.dll");
    }

}

[toc] | [prev] | [next] | [standalone]


#15416

Fromclusardi2k@aol.com
Date2012-06-19 07:18 -0700
Message-ID<4faf6ae1-dd53-4aad-a842-9073a48986fa@googlegroups.com>
In reply to#15306
The below link may indicate that I can use the example's "-m32" option on Windows 7.

http://stackoverflow.com/questions/2426478/when-should-m32-option-of-gcc-be-used

Since I am creating the DLL, it may also be ok for me to use the example's "-shared" option.

[toc] | [prev] | [next] | [standalone]


#15418

Fromclusardi2k@aol.com
Date2012-06-19 07:25 -0700
Message-ID<3dbfcb84-f4c5-48c7-bdb8-909cf2d903f9@googlegroups.com>
In reply to#15306
Without success, I also tried using loadLibrary instead of "load".

[toc] | [prev] | [next] | [standalone]


#15419

Fromclusardi2k@aol.com
Date2012-06-19 08:27 -0700
Message-ID<c772fdbd-5924-4eb6-9eac-b1a32373e049@googlegroups.com>
In reply to#15306
With the below code, I get a different error. It complains at the "new" (Line 7).

package jnidemojava;

public class Main {
    private native void nativePrint();
    
    public static void main(String[] args) {
        new Main().nativePrint(); //LINE 7
        
        System.out.println (System.getProperty("java.library.path"));
    }
    
    static {
        System.loadLibrary("libJNIDemoCdl");
   }    
}

run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidemojava.Main.nativePrint()V
	at jnidemojava.Main.nativePrint(Native Method)
	at jnidemojava.Main.main(Main.java:7)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

[toc] | [prev] | [next] | [standalone]


#15420

Fromclusardi2k@aol.com
Date2012-06-19 08:35 -0700
Message-ID<fae1e277-d6ff-4107-91f0-cf23969304e8@googlegroups.com>
In reply to#15419
>         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");

}

[toc] | [prev] | [next] | [standalone]


#15421

Fromclusardi2k@aol.com
Date2012-06-19 08:53 -0700
Message-ID<969ae96c-7a65-484c-a73e-68b008d6b658@googlegroups.com>
In reply to#15420
On Tuesday, June 19, 2012 11:35:53 AM UTC-4, (unknown) wrote:
> >         new Main().nativePrint(); //LINE 7, mentioned in error message below
> 
> 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

What do I have to do be able to run with this line uncommented. Am I missing a compiler/linking option.

If I uncomment the line I get the run-time error message:

run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidemojava.Main.nativePrint()V
	at jnidemojava.Main.nativePrint(Native Method)
	at jnidemojava.Main.main(Main.java:7)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

[toc] | [prev] | [next] | [standalone]


#15423

Fromclusardi2k@aol.com
Date2012-06-19 09:20 -0700
Message-ID<ea7feba6-fd7d-40c1-975b-4aeafc8ab334@googlegroups.com>
In reply to#15421
If I look at the Windows example at:

http://cnd.netbeans.org/docs/jni/beginning-jni-win.html

None of the following options: "-mno-cygwin -Wl,--add-stdcall-alias -shared -m32" allow me to run with an uncommented line 7.

Am I wrong, or is NetBeans complaining about the actual versus formal argument discrepancy?

[toc] | [prev] | [next] | [standalone]


#15457

Fromclusardi2k@aol.com
Date2012-06-20 10:56 -0700
Message-ID<92aeb643-6930-460e-9c8d-d0785e7919aa@googlegroups.com>
In reply to#15306
I have it working. That's if I use the 32bit versions of JDK and JRE, and compile the C project using toptions:

-Wl,--export-all-symbols -Wl,--add-stdcall-alias

[toc] | [prev] | [next] | [standalone]


#15459

FromLew <lewbloch@gmail.com>
Date2012-06-20 11:49 -0700
Message-ID<8165dad1-1dd1-40cc-929c-344ff7d7cb5c@googlegroups.com>
In reply to#15306
On Friday, June 15, 2012 11:57:42 AM UTC-7, (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.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#15503

From"John B. Matthews" <nospam@nospam.invalid>
Date2012-06-21 22:35 -0400
Message-ID<nospam-008072.22355621062012@news.aioe.org>
In reply to#15459
In article <8165dad1-1dd1-40cc-929c-344ff7d7cb5c@googlegroups.com>,
 Lew <lewbloch@gmail.com> wrote:

> On Friday, June 15, 2012 11:57:42 AM UTC-7, (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

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

[toc] | [prev] | [next] | [standalone]


#15509

FromLew <noone@lewscanon.com>
Date2012-06-21 21:39 -0700
Message-ID<js0su7$a8u$1@news.albasani.net>
In reply to#15503
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.

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

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

[toc] | [prev] | [next] | [standalone]


#15539

From"John B. Matthews" <nospam@nospam.invalid>
Date2012-06-23 00:16 -0400
Message-ID<nospam-E94DC8.00165023062012@news.aioe.org>
In reply to#15509
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>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web