This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Calling java code from C/C++ code.
- To: Timothy Wall <twall at cygnus dot com>
- Subject: Re: Calling java code from C/C++ code.
- From: Tom Tromey <tromey at redhat dot com>
- Date: 27 Feb 2001 11:30:57 -0700
- Cc: java at gcc dot gnu dot org
- References: <3A9BE61C.3F2936FC@cygnus.com>
- Reply-To: tromey at redhat dot com
>>>>> "Tim" == Timothy Wall <twall@cygnus.com> writes:
Tim> Is it possible to use gcj to generate a shared object which can
Tim> be loaded (via dlopen/dlsym) and invoked from a C/C++ program?
Not yet. We haven't finished the invocation API, which is what you
would need to make this work.
You could do it with a Java main() though. In fact it would probably
work if your Java class' main() was a native method. (I haven't tried
that but I don't see why it wouldn't work.)
Tom