This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Calling java code from C/C++ code.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]