GCJ for windows-question...

Adam Megacz gcj@lists.megacz.com
Tue Jul 16 10:04:00 GMT 2002


Frank Jacobs <forkjake@yahoo.com> writes:
> Regarding JNI, GCJ currently does not support it. This is because
> the GCJ build process is setup to disable the loading of shared
> libraries (e.g. DLLs) for cross-compilers.

I believe JNI should work if you link statically, but I've never tried
it.  Frank is right, though -- dynamic linking definately won't work
on Win32.


> About a month ago, I was working on creating a patch to get around
> this problem (using the Windows LoadLibrary() call), but ran into a
> problem with it. I haven't had a chance to get back to it, but hope
> to in the next week or so.

Be warned that we had to introduce a hack into the garbage collector,
and that hack was built upon the assumptions that DLLs would not be
used. If you do enable DLL support, you'll need to make changes to the
garbage collector.

  - a


-- 
Sick of HTML user interfaces?
www.xwt.org

Just because you understand something doesn't mean you can change it.



More information about the Java mailing list