[Insight-users] Java - Missing jnilib
Robert Barnett
retsil at iinet.net.au
Sun Nov 16 16:27:28 EST 2008
I have compiled ITK 3.10.0 and CableSwig 3.10.0 for MacOSX with java wrappers. It
appears that a jni file is not generated in the build process.
java -cp /opt/itk/lib/InsightToolkit/InsightToolkit.jar:. MeanImageFilter
MeanImageFilter Example
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library:
/opt/itk/lib/InsightToolkit/libSwigRuntimeJava.jnilib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1705)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.Runtime.load(Runtime.java:757)
at InsightToolkit.itkbase.<clinit>(itkbase.java:60)
at
InsightToolkit.itkImageFileReader_2DJNI.<clinit>(itkImageFileReader_2DJNI.java:797)
at
InsightToolkit.itkImageFileReaderUS2.itkImageFileReaderUS2_New(itkImageFileReaderUS2.java:67)
at MeanImageFilter.main(MeanImageFilter.java:14)
However,
/opt/itk/lib/InsightToolkit/libSwigRuntimeJava.so
does exist
How would I manually generate the jnilib file?
Thanks
More information about the Insight-users
mailing list