This is the mail archive of the java-discuss@sourceware.cygnus.com 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: dynamic library loading?


On Jun 20, 1999, Per Bothner <bothner@pacbell.net> wrote:

> Alexandre Oliva <oliva@dcc.unicamp.br> writes:
>> What's wrong with System.loadLibrary?

> System.loadLibrary loads native methods.

In my reading, System.loadLibrary brings a shared library (whatever
that means) into the native address space of a Java virtual machine.
This may or may not provide definitions for native methods.  In a
sense, all gcj methods are native, it seems to me that it would make
sense to use System.loadLibrary to load them.  I'm quite aware that
loading a class is more than just loading in its methods, but it
appears to be a natural extension to me.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists


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