Great, thanks a lot. Fixed the issues I had.
However I wonder where 'wall-hack-method' lives now, as clojure-contrib has
been split.
This (old) thread suggests it has also been renamed to call-method
https://groups.google.com/forum/?fromgroups=#!topic/clojure-dev/tKzqnJWpz-k
So is this still
You no longer need any of this. All you should need is to use
(clojure.lang.RT/loadLibrary vtkwhatever)
That will ensure that the native libs end up in the correct classloader.
On Fri, Apr 26, 2013 at 3:46 AM, Nils Blum-Oeste
nblumoe...@googlemail.comwrote:
Great, thanks a lot. Fixed the
I have tried to use wall-hack-method but I still obtain the
error: UnsatisfiedLinkError vtk.vtkConeSource.VTKInit()J
vtk.vtkConeSource.VTKInit (vtkConeSource.java:-2). What I am doing wrong?
(ns project.core
(:import (javax.swing JButton JFrame JPanel)
(vtk vtkConeSource
On Tue, Jun 21, 2011 at 8:00 PM, Antonio Recio amdx6...@gmail.com wrote:
I have tried to use wall-hack-method but I still obtain the
error: UnsatisfiedLinkError vtk.vtkConeSource.VTKInit()J
vtk.vtkConeSource.VTKInit (vtkConeSource.java:-2). What I am doing wrong?
(ns project.core
(:import
Aaron Cohen, thank you! It works !!!
--
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
Hi,
you are missing the static part from the Java source. Add the
(System/loadLibrary vtkCommonJava) etc. between the ns clause and the
definition of main.
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
I have added the static libraries in the clojure file:
(ns project.core
(:import (javax.swing JButton JFrame JPanel)
(vtk vtkConeSource vtkPolyDataMapper vtkRenderWindow
vtkRenderWindowInteractor vtkCamera vtkActor vtkRenderer
I have tried with ... but I get the same error:
(System/setProperty java.library.path /usr/local/lib/vtk-5.9/)
--
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
I have tried also this:
$ java -Djava.library.path=/usr/local/lib/vtk-5.9/
-Djava.ext.dirs=/usr/share/java -cp clojure.jar:src clojure.main main.clj
Exception in thread main java.lang.ClassNotFoundException:
vtk.vtkConeSource (main.clj:1)
at
It appears that you need to have the VTK *.class or *.jar files on you
classpath as well.
Add the path to your VTK java files to the cp parameter you are
invoking clojure with.
On Tue, Jun 21, 2011 at 11:26 AM, Antonio Recio amdx6...@gmail.com wrote:
I have tried also this:
$ java
Aaron, thanks. You are right I had forgotten the vtk.jar, but I still obtain
errors:
*My /usr/local/bin/clojure:*
#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export
Your LD_LIBRARY_PATH is quite extensive there, is that all required or
is this just a bunch of stuff you've been trying?
I usually just use -Djava.library.path=whatever. On linux you also
may have to be sure that your shared libraries are +x for your user.
--Aaron
On Tue, Jun 21, 2011 at 12:17
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
main.clj
Exception in thread main java.lang.RuntimeException:
java.lang.UnsatisfiedLinkError: vtk.vtkConeSource.VTKInit()J
at
On Tue, Jun 21, 2011 at 12:38 PM, Antonio Recio amdx6...@gmail.com wrote:
java -Djava.library.path=/usr/local/lib/vtk-5.9/
This is the directory that contains: libvtkCommonJava.so,
libvtkFilteringJava.so, libvtkIOJava.so, libvtkImagingJava.so,
libvtkGraphicsJava.so, and libvtkRenderingJava.so ?
All the vtk libraries that I need are in /usr/local/lib/vtk-5.9/ and are
executable.
Java and c++ examples work fine.
--
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
OK, I've gotten it working on my computer, and it turns out to be a
slightly complicated problem.
What is happening is that the vtk java files and your clojure code are
using different classloaders (clojure uses its own classloader).
System/loadLibrary is kind of crippled in that it always loads
16 matches
Mail list logo