Calling native methods in Java
Samarjeet S Tomar
tomar at cse.psu.edu
Thu Jun 17 09:18:36 PDT 1999
I used it on Solaris 2.6 .
I loaded the .so file created from the object files of the stub file and
the implementation file(in which I wrote the C code) using System.loadLibrary .
-Samarjeet.
On 17 Jun 1999, Alexandre Oliva wrote:
> On Jun 16, 1999, Samarjeet S Tomar <tomar at cse.psu.edu> wrote:
>
> > I want to call a native method from Java code. I have written the code,
> > compiled it and created the library also. But when I run it with Kaffe it
> > gives the following error :
> > Failed to locate native function:
> > spec/harness/Mytime.st_time()V
> > java.lang.UnsatisfiedLinkError
>
> Which platform? How did you implement the native method, with JNI?
> How did you load the native class?
>
> --
> 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
>
>
More information about the kaffe
mailing list