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: GCJ for windows-question...


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.


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