Calling native methods in Java

Samarjeet S Tomar tomar at cse.psu.edu
Wed Jun 16 12:51:26 PDT 1999


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
        at spec/harness/ProgramRunner.runBenchmark(line unknown, pc 0)
        at spec/harness/ProgramRunner.run(211)
        at spec/harness/RunProgram.run(60)
        at SpecApplication.runBenchmark(255)
        at SpecApplication.main(171)

It is running fine with java though.
How can I make it run ?

Thanks,

-Samarjeet
tomar at cse.psu.edu



More information about the kaffe mailing list