This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: invoke GCJ .o files from C/C++ program
- To: Cecilia Vy-Ai Le <a1tv86 at yahoo dot com>
- Subject: Re: invoke GCJ .o files from C/C++ program
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 06 Jul 2000 11:36:12 +1200
- CC: java-discuss at sourceware dot cygnus dot com
- References: <20000705221532.14908.qmail@web1203.mail.yahoo.com>
Cecilia Vy-Ai Le wrote:
> I have just started to work on Java/GCJ/LIBGCJ since
> June.
> I build a static library which 'ar' all object files
> generated by: gcj -c javafiles.java
> Now, I am try to invoke this library from my C/C++
> main program.
Using CNI, you can't currently invoke java code from a C++ program using
CNI. This is a rather annoying deficiency and something that has been on
the todo list of things to fix for a while. I don't know the status of
JNI invocation support, but I suspect it may be incomplete as well.
regards
[ bryce ]