Calling java code from C/C++ code.
Tom Tromey
tromey@redhat.com
Tue Feb 27 10:21:00 GMT 2001
>>>>> "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
More information about the Java
mailing list