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]
Other format: [Raw text]

Re: Using GCJ to make Java libraries available for other languages


>>>>> "Øyvind" == Øyvind Harboe <oyvind dot harboe at zylin dot com> writes:

Øyvind> - Use GCJ to compile a native DLL
Øyvind> - This DLL could have a Windows COM typelibrary which exports
Øyvind> specified Java objects.
Øyvind> - Import the COM object to Visual C++, Visual Basic, Delphi,
Øyvind> etc.

Honestly I'm not sure whether this is possible in practice.
In theory it certainly is, and we already have the code.

It really depends on how well the GC code can code with being put into
an environment like this.

See the CNI (and JNI) invocation API.  These can be used to load
libgcj dynamically and start up a Java virtual machine in an existing
process.  However, based on the small number of bug reports, I'd say
this hasn't been heavily used (or it is very well implemented :-).

Tom


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