[vtkusers] Wrapping Java

Daniel Sáez Domingo dsaez at iti.upv.es
Mon Apr 29 07:15:40 EDT 2002


Hello,

   I have a problem loading libraries in Java. I'll explain it.

I have ported VTK into Mac OSX using only Quartz and wrapping Java. It 
generates libraries named libnameJava.dylib from a great number of files. I 
have included the DYLD_LIBRARY_PATH with the path to these libraries.
Then, when a System.loadLibrary("nameJava") call is done, it's produced an 
UnsatisfiedLinkError.
I have read that the System.loadLibrary() call needs a .jnilib library, but I 
don't know how to create it from a dylib library (this option would be the 
best) or from the source files. I don't either know if I have to create both 
jnilib and dylib libraries because I don't know if the dylib library is going 
to be used.

I would thank somebody help me.

Daniel Sáez



More information about the vtkusers mailing list