Calling native methods in Java
Samarjeet S Tomar
kaffe@rufus.w3.org
Wed, 16 Jun 1999 15:51:26 -0400 (EDT)
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@cse.psu.edu