This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: dynamic library loading?
>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
Alexandre> In a sense, all gcj methods are native, it seems to me that
Alexandre> it would make sense to use System.loadLibrary to load them.
Alexandre> I'm quite aware that loading a class is more than just
Alexandre> loading in its methods, but it appears to be a natural
Alexandre> extension to me.
I disagree. I think changing System.loadLibrary would be a mistake --
we would be changing the semantics of the method. Instead I think we
should implement a ClassLoader which knows how to load shared
libraries and define classes based on the contents. It can use
System.loadLibrary in its implementation.
T