[vtkusers] A step forward and stuck again: VTK, Mac OS, Java, UnsatisfiedLinkError, bad library format/name?

Bernard Giroux giroux at geo.polymtl.ca
Mon Feb 19 10:07:07 EST 2007


Kustaa Nyholm a écrit :
> Hi thanks to help from the list I've now compiled VTK on Mac OS
> 
> I've got the vtk.jar file and thus have been compile the test.java
> sample application.
> 
> When I try to run it I get exception:
> 
> java.lang.UnsatisfiedLinkError:
> /Users/nyholku/VTK/bin/libvtkCommonJava.5.0.2.dylib:

Does DYLD_LIBRARY_PATH contains the directory where *jnilib and *dylib are?



> 
> when the Java code tries to execute:
> 
> System.loadLibrary("vtkCommonJava");
> 
> Now, I suspect that this is not the common problem of the class loader
> not finding the
> native library, as I've traced with the debugger to see what happens
> and as far
> as I can make out, the "vtkCommonJava" gets mangled (correctly, I
> presume)
> to "libvtkCommonJava.jnilib" which is a link to
> "/Users/nyholku/VTK/bin/libvtkCommonJava.5.0.2.dylib"
> and which exists (verified with copy pasting the path to ls command, so
> there is no typo there).
> 
> So it appears, that the class loader actually gets the correct file
> name/path (as evidenced by the
> exception message with the correct path name), but for some reason is
> not able to load 
> the library. Wrong format of the library, or maybe the name (recall
> having read something like that somewhere)
> of the library is separate from the file name?
> 
> Any pointers? What information should I send to help list to help me?
> 
> br Kusti
> 
> 
> Kustaa Nyholm
> Research Manager, Software
> Research and Technology Division
> PLANMECA OY
> Asentajankatu 6
> 00880 HELSINKI
> FINLAND
> 
> Please note our new telephone and fax numbers!
> Tel: +358 20 7795 572 (direct)
> Fax: +358 20 7795 676
> GSM: +358 40 580 5193
> e-mail: kustaa.nyholm at planmeca.com 
> 
> This e-mail may contain confidential or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden. We will not be liable for direct,
> indirect, special or consequential damages arising from alteration of
> the contents of this message by a third party or as a result of any
> virus being passed for viruses.
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
Bernard Giroux, ing., Ph.D.
Associé de recherche

http://geo.polymtl.ca/~giroux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070219/123d83e9/attachment.bin>


More information about the vtkusers mailing list