S
Sergio
I have the following problem; I want to call some legacy code from
java (some mathematical processing routines).
So I have prepared a java (JNI) wrapper using the swig tool and
everything went ok. I am able to call the c code from the java code
and it doesn't reports any errors, but the results are slightly
different from the same code called from C (something like 1.1e-12).
The C code is only called from the java, there isn't any parameters
passing between them and the C code writes its results to files.
This seems some kind of problem with the Virtual machine handling of
the Shared Library, I there someone that had this kind of problem?
I am using the following versions:
jvm
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
gcc
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
swig
SWIG Version 1.3.19
java (some mathematical processing routines).
So I have prepared a java (JNI) wrapper using the swig tool and
everything went ok. I am able to call the c code from the java code
and it doesn't reports any errors, but the results are slightly
different from the same code called from C (something like 1.1e-12).
The C code is only called from the java, there isn't any parameters
passing between them and the C code writes its results to files.
This seems some kind of problem with the Virtual machine handling of
the Shared Library, I there someone that had this kind of problem?
I am using the following versions:
jvm
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
gcc
gcc version 3.3 20030226 (prerelease) (SuSE Linux)
swig
SWIG Version 1.3.19