This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: CNI invocation [was Re: Segfault on simple HelloWorld]
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: CNI invocation [was Re: Segfault on simple HelloWorld]
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 23 Mar 2000 21:55:25 -0800 (PST)
- Cc: James CE Johnson <jcej at tragus dot org>, java-discuss at sourceware dot cygnus dot com
- References: <38DAD83A.26A07C33@tragus.org><38DAF5FE.B33A9A1B@albatross.co.nz>
Bryce> For now, you could try using JNI (supported in current libgcj
Bryce> snapshots), or create a simple java "main" class to call your
Bryce> C++ main method, and link your application using "gcj
Bryce> --main=xxx". In fact, "public static native void main(String
Bryce> args[])" should probibly work ;-)
If you're going to make a native Foo.main() you could just make it use
CNI.
Our JNI includes an invocation interface, but it has never been tested
and, I would venture, almost certainly has bugs. My JNI testing has
been (temporarily) derailed by other work.
Tom