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
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/:/usr/local/lib/:/usr/local/lib/vtk-5.9/:/usr/local/lib/cmake/ITK-4.0/WrapITK/lib/
export
CLASSPATH=/usr/share/java/clojure-contrib.jar:/usr/local/lib/vtk-5.9/java/vtk.jar:.
if [ "x$CLASSPATH" = "x" ] ; then
extra_classpath=""
else
extra_classpath=":$CLASSPATH"
fi
while true ; do
case "$1" in
-cp | -classpath)
extra_classpath=":$2"
shift 2 ;;
--)
shift
break ;;
*)
break ;;
esac
done
if [ "x$1" = "x" -a "x`which rlwrap`" != "x" ] ; then
rlwrap="rlwrap -r -c -C clojure -f /etc/rlwrap/clojure-b
(){}[],^%\$#@\"\";:''|\\"
fi
exec rlwrap --complete-filenames --quote-characters='"' --prompt-colour=Red
java -cp /usr/share/java/clojure.jar"$extra_classpath" clojure.main "$@"
*When I execute the application:*
$ clojure main.clj
Exception in thread "main" java.lang.RuntimeException:
java.lang.UnsatisfiedLinkError: vtk.vtkConeSource.VTKInit()J
at clojure.lang.Util.runtimeException(Util.java:153)
at clojure.lang.Compiler.eval(Compiler.java:6417)
at clojure.lang.Compiler.load(Compiler.java:6843)
at clojure.lang.Compiler.loadFile(Compiler.java:6804)
at clojure.main$load_script.invoke(main.clj:282)
at clojure.main$script_opt.invoke(main.clj:342)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:401)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
Caused by: java.lang.UnsatisfiedLinkError: vtk.vtkConeSource.VTKInit()J
at vtk.vtkConeSource.VTKInit(Native Method)
at vtk.vtkObject.<init>(vtkObject.java:96)
at vtk.vtkAlgorithm.<init>(vtkAlgorithm.java:794)
at vtk.vtkPolyDataAlgorithm.<init>(vtkPolyDataAlgorithm.java:163)
at vtk.vtkConeSource.<init>(vtkConeSource.java:114)
at project.core$main.invoke(main.clj:14)
at project.core$eval26.invoke(main.clj:38)
at clojure.lang.Compiler.eval(Compiler.java:6406)
... 10 more
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en