When I try to load native libraries in the System ClassLoader I get an 
error of cannot open shared object file, and I don't know how to solve it.

In linux in REPL :
clojure java -Djava.library.path=/usr/local/lib/vtk-5.9/ -cp 
/usr/share/java/clojure.jar:/usr/local/lib/vtk-5.9/java/vtk.jar clojure.main

when I execute this code :
(ns project.core
  (:import (javax.swing JButton JFrame JPanel)
           (vtk vtkConeSource vtkPolyDataMapper vtkRenderWindow
                vtkRenderWindowInteractor vtkCamera vtkActor vtkRenderer
                vtkInteractorStyleTrackballCamera)))

(clojure.lang.RT/loadLibrary "vtkCommonJava")

I obtain this error :
UnsatisfiedLinkError /usr/local/lib/vtk-5.9/libvtkCommonJava.so.5.9.0: 
libvtkCommon.so.5.9: cannot open shared object file: No such file or 
directory  java.lang.ClassLoader$NativeLibrary.load (ClassLoader.java:-2)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to