Re: How I can convert this python line to clojure?

2012-06-26 Thread Antonio Recio
@Lars Nilson: You are right, I have take a look at vtkDataSetAttributes.java and there is not any reference to SCALARS. In vtk documentation they have included SCALARS.

Re: How I can convert this python line to clojure?

2012-06-26 Thread Antonio Recio
I would like convert this python line to clojure: vtkCompositeDataSet.NAME() When I read vtkCompositeDataSet.java I find this: private native long NAME_16(); public vtkInformationStringKey NAME() { long temp = NAME_16(); if (temp == 0) return null; return

Re: How I can convert this python line to clojure?

2012-06-25 Thread Antonio Recio
@Lars Nilsson: I doesn't work. user= (println vtkDataSetAttributes$AttributeTypes/SCALARS) #CompilerException java.lang.RuntimeException: No such namespace: vtkDataSetAttributes$AttributeTypes, compiling:(REPL:4) user= (println vtk.vtkDataSetAttributes$AttributeTypes/SCALARS)

How to convert a python list to clojure?

2012-06-24 Thread Antonio Recio
I have this list in python: cc = list() for i in range(256): cc.append(ctf.GetColor(float(i) / 255.0)) And I would know if this is correct conversion in clojure? (def cc [(for [i (range 256)] (.. ctf GetColor (/ i 255.0)))]) -- You received this message because you are subscribed to

How I can convert this python line to clojure?

2012-06-24 Thread Antonio Recio
I have this python line that gives the number 1 as result print vtkDataObject.FIELD_ASSOCIATION_CELLS ;= 1 And I would like to convert it to clojure.I have tried this 3 way, but I think they are incorrect. Which is the correct way? (println (vtkDataSetAttributes.SCALARS)) ;=

Re: How I can convert this python line to clojure?

2012-06-24 Thread Antonio Recio
The python line that I have rote before is not the one that I want to convert. The correct python line is this, and the result is 0. How I can convert it to clojure? print vtkDataSetAttributes.SCALARS ;= 0 -- You received this message because you are subscribed to the Google Groups Clojure

One little question about vectors and nth?

2012-06-23 Thread Antonio Recio
I have an object called cone. I can change the origin of the cone with this: (.SetOrigin cone 1 1 1) I have a vector called v (def v [2 4 6 8]) And I would like to take 3 elements of the vector v and to set to the origin of the cone. But when I write this I obtain an error: (.SetOrigin cone

Little question about doto?

2012-06-23 Thread Antonio Recio
I create a white sphere at the beginning of my code, and later, after some lines of code, I change the color and the position of this sphere. (def sphere (doto (mesh.sphere.) (.SetColor white)) (...) (...) (...) (.. sphere SetColor red) (.. sphere SetPosition 5 5 0)) To change the color

Clojurescript and SQLite?

2012-04-21 Thread Antonio Recio
I would like to write an offline webapp for iphone using clojurescript and sqlite. Do you know some project/tutorial to take a look? -- 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

Re: How I can use InteractionEvent in clojure?

2012-03-08 Thread Antonio Recio
It works!!! Thanks Aaron Cohen and Mark Rathwell. The code final that works 100% of the example cone6 of vtk in clojure is this: (ns example (:import (javax.swing JFrame JPanel SwingUtilities))) (clojure.lang.RT/loadLibrary vtkCommonJava) (clojure.lang.RT/loadLibrary vtkWidgetsJava) (def

Re: How I can use InteractionEvent in clojure?

2012-03-07 Thread Antonio Recio
When I print myCallback I obtain this: (println myCallback) user = #example$myCallback example$myCallback@6e1c51b4 I have used this: (doto coneMapper (.SetInput (.GetOutput cone))) And the applications runs, with not errors in the prompt too, but the boxWidget still doesn't work. On

Re: How I can use InteractionEvent in clojure?

2012-03-07 Thread Antonio Recio
It seems that callback is not called. I have added (println Testing callback) in the definition of myCallback and there is not message in the prompt when I run the application. (def myCallback (fn [] (let [t (vtk.vtkTransform.)] (.GetTransform t) (- boxWidget .GetProp3D

Re: How I can use InteractionEvent in clojure?

2012-03-07 Thread Antonio Recio
You are right. I have capitalized InteractionEvent and now callback it is called and it prints invoke. The application runs but the boxWidget still doesn't work, and I obtain an error message: Exception in thread main java.lang.IllegalArgumentException: No matching field found: GetTransform

Re: How I can use InteractionEvent in clojure?

2012-03-05 Thread Antonio Recio
Yes I have tried using fn and I gives me the same error : Exception in thread main java.lang.NoSuchMethodError: invoke -- 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

Re: How I can use InteractionEvent in clojure?

2012-03-05 Thread Antonio Recio
I have tried the new code. There are not errors in the prompt, but the boxWidget still doesn't work. It seems like boxWidget and the cone are not well connected. The final code that I have after using run: (ns example (:import (javax.swing JFrame JPanel SwingUtilities)))

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
How I can use proxy to set the AddObserver? -- 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

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
I obtain this error: Exception in thread main java.lang.NoSuchMethodError: invoke -- 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

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
This example works if you have installed vtk in your system, but it is not possible to re-size the cone using the boxWidget. I have disabled the line of AddObserver because it gives an error (Exception in thread main java.lang.NoSuchMethodError: invoke). What I am doing wrong? The source of

Re: How I can use InteractionEvent in clojure?

2012-03-04 Thread Antonio Recio
If it is not possible to use AddObserver, how I can use gen-class in this example? -- 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

Re: How I can use InteractionEvent in clojure?

2012-03-03 Thread Antonio Recio
Any advice? -- 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

How I can use InteractionEvent in clojure?

2012-03-02 Thread Antonio Recio
How I can translate this InteractionEvent written for a java example to clojure? void myCallback() { vtkTransform t = new vtkTransform(); boxWidget.GetTransform(t); boxWidget.GetProp3D().SetUserTransform(t);} boxWidget.AddObserver(InteractionEvent, this, myCallback);

Question ActionListener conditional

2011-12-23 Thread Antonio Recio
I am trying to add and to remove an object isoActor when I click the button isoButton, but I get an error: Exception in thread main java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol The code: (. isoButton addActionListener (proxy [ActionListener]

Re: Question ActionListener conditional

2011-12-23 Thread Antonio Recio
When I click 2 times the button isoButton I get an error. (.addActionListener isoButton (proxy [ActionListener] [] (actionPerformed [] (if (.isSelected isoButton) (println Button is selected)

Question about accessing java methods?

2011-12-21 Thread Antonio Recio
Is this correct? Are there other ways to convert this java line in clojure? Java: boxWidget.GetProp3D().SetUserTransform(t); Clojure: (doto boxWidget (- (GetProp3D.) (.SetUserTransform t))) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: java this keyword ?

2011-12-21 Thread Antonio Recio
I am trying to listen every interaction event that is generated by the boxWidget, but I am not able to get the solution (defn myCallback [] (let [t (vtk.vtkTransform.)] (doto boxWidget (.GetTransform t) (- (.GetProp3D) (.SetUserTransform t)) )))

How to use *command-line-args* ?

2011-12-21 Thread Antonio Recio
I am trying to write an application using *command-line-args* to read and write images: (defn read-write-image [input-filename output-filename] (let [reader (ImageFileReader.) writer (ImageFileWriter.)] (.SetFileName reader input-filename) (.SetFileName writer output-filename)

Re: How to use *command-line-args* ?

2011-12-21 Thread Antonio Recio
Solved: (read-write-image (nth *command-line-args* 0) (nth *command-line-args* 1)) -- 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

How to get the vector?

2011-12-20 Thread Antonio Recio
When I try to get the position of two variables I get a bizzare code, but not the vector. How I can get the vector in the form of position iren [0 0 0]? user= (.GetEventPosition iren) #int[] [I@62114b17 user= (.GetPickPosition picker) #double[] [D@1aef4504 -- You received this message

IllegalArgumentException Parameter declaration should be a vector ?

2011-12-20 Thread Antonio Recio
Whith this code: (defn myCallback (def t (vtk.vtkTransform.)) (doto boxWidget (.GetTransform t) (- (.GetProp3D) (.SetUserTransform t)) )) I get this error. Why? IllegalArgumentException Parameter declaration def should be a vector

java this keyword ?

2011-12-20 Thread Antonio Recio
I would like to convert a java code to clojure that contains the word this, but I don't know how to. Java: boxWidget.AddObserver(InteractionEvent, this, myCallback); Clojure: (doto boxWidget (.AddObserver InteractionEvent this myCallback)) -- You received this message because you are

REPL limitation lines to paste?

2011-12-19 Thread Antonio Recio
I have noticed that there is a limit in the lines that be are able to paste in REPL. For example when I try to paste 200 lines of clojure code in REPL, it only paste the first 92 lines. Is it a bug or express? Is it possible to be able to paste unlimited? -- You received this message because

UnsatisfiedLinkError using clojure.lang.RT/loadLibrary

2011-12-17 Thread Antonio Recio
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

Read linux PATH in clojure

2011-12-17 Thread Antonio Recio
Using the environment variable: export VTK_DATA_ROOT=/opt/apps/VTK/VTKData/ I would like to change this: (.SetFilePrefix /opt/apps/VTK/VTKData/Data/headsq/quarter) To something like this (.SetFilePrefix $VTK_DATA_ROOT/Data/headsq/quarter) How I can write linux PATH in clojure?

Error converting an example written in C++, TCL, python to clojure

2011-12-17 Thread Antonio Recio
I would like to set up an initial centered view of a volume. I have different examples without errors of how to do it in c++, tcl and python. When I tried to translate in clojure I get errors. Where is the error in my clojure code? In C++ is as follow: ren-AddViewProp(volume); vtkCamera

Re: Read linux PATH in clojure

2011-12-17 Thread Antonio Recio
Although in REPL the path is correct, when I execute the application it doesn't work. Why? (.SetFilePrefix (str (get (System/getenv) VTK_DATA_ROOT) Data/headsq/quarter)) (.SetFilePrefix /opt/apps/VTK/VTKData/Data/headsq/quarter) -- You received this message because you are subscribed to the

Re: Read linux PATH in clojure

2011-12-17 Thread Antonio Recio
Sorry, I have reexecuted the code above an it works perfectly. Thanks Andy Fingerhut. -- 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

ClojureScript and CouchDB?

2011-11-06 Thread Antonio Recio
I would like to use ClojureScript to interact with databases. Which is the database engine that you recommend me to use with ClojureScript? Is CouchDB most recommendable than PostgreSQL? Do you know some project using ClojureScript to interact with databases? -- You received this message

Too many arguments to if

2011-07-11 Thread Antonio Recio
I get the error Too many arguments to if with this. Do you have any suggestion? (defn make-tree [tree [n1 n2 n3 n4]] (.addItem tree n1) (if (empty? n2) (.setChildrenAllowed tree n1 false) (doto tree (.addItem n2) (.setParent n2 n1) (.expandItemsRecursively n1))

Re: Tree vaadin?

2011-07-11 Thread Antonio Recio
Harsha Sanjeewa has translated the vaadin example of the tree in clojure. The source is here https://github.com/hsenid-mobile/clj-vaadin. It is very useful to begin working with clojure and vaadin. This tree example has 2 levels and I would like to have 4 levels. With the following code it

I cannot scroll up down REPL in konsole

2011-07-06 Thread Antonio Recio
In the default terminal of KDE linux, konsole, when I am using REPL I cannot scroll up down. When I get a long message I can only read the last lines. Is there any way to scroll up down the REPL in konsole (or other linux terminal)? (I think it is possible in emacs or vim, but I am interested

Re: I cannot scroll up down REPL in konsole

2011-07-06 Thread Antonio Recio
With xterm works fine. Are other people with konsole? -- 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

Re: I cannot scroll up down REPL in konsole

2011-07-06 Thread Antonio Recio
I have discovered the cause of the problem, it is screen. When I am using repl with screen I cannot scroll up down with konsole or xterm. Without screen works fine in konsole or xterm. Is there other people with problem with screen and scroll down up repl? -- You received this message

Re: I cannot scroll up down REPL in konsole

2011-07-06 Thread Antonio Recio
I am using a vim script called Viclehttp://www.vim.org/scripts/script.php?script_id=2551to send lines to screen repl. This is the reason why I use screen. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: I cannot scroll up down REPL in konsole

2011-07-06 Thread Antonio Recio
@Perry: You are right, when screen is in copy mode (Ctrl + a + [) the scrollback works. Solved. Thanks. -- 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

iterate?

2011-07-04 Thread Antonio Recio
Do you know how to solve this? (= (repeat 100 :foo) (take 100 (iterate ___ :foo))) -- 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 -

Re: lein repl syntax highlighting?

2011-07-03 Thread Antonio Recio
And do you know if with cake is possible to highlight syntax? -- 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

Clojure Koans and others interactive exercises to learn clojure?

2011-07-03 Thread Antonio Recio
Clojure koans https://github.com/functional-koans/clojure-koans is awesome to learn clojure. Do you know other projects with exercises to learn clojure? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Sample Vaadin application in Clojure

2011-07-02 Thread Antonio Recio
The clj-vaadin https://github.com/hsenid-mobile/clj-vaadin project is wonderful, it is very useful for me. It has an example of making a tree with vaadin with 2 levels. Do you know how I can add a third and fourth level? (defn level2 [tree n1 n2] (reduce (fn [tree n2] (doto tree

lein repl syntax highlighting?

2011-07-02 Thread Antonio Recio
Is there any way to highlight syntax in lein repl from a terminal? -- 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

Other way to express (((m2) 2) 1)?

2011-06-29 Thread Antonio Recio
Is there other way to express (((m2) 2) 1)? (def m [1 2 [21 22 [221 222 223] 23] 3]) (((m 2) 2) 1) ;- 222 -- 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

Re: Other way to express (((m2) 2) 1)?

2011-06-29 Thread Antonio Recio
(get-in m [2 2 1]) is great! Which are the others ones? Is there something like (- m [2 2 1])? -- 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

Re: struct sharing same key?

2011-06-27 Thread Antonio Recio
When I repeat : the number 3 [{:3 father Andrew D :3 mother Lisa D}] I get an error, although I can repeat number 1 with no problem. Why? (struct person {:1 english person [{:2 Andrew D [{:3 father Andrew D :3 mother Lisa D}] :2 Justin M

Re: Tree vaadin?

2011-06-27 Thread Antonio Recio
I have tried to use amap but I was too difficult for me and I have tried the map: (def tree (com.vaadin.ui.Tree. Planets)) (map #(.addItem tree (.toString (first %))) planets) But I get an error: IllegalArgumentException Don't know how to create ISeq from:

Tree vaadin?

2011-06-26 Thread Antonio Recio
I would like to translate a java example of tree vaadin to clojure. I have to files in the same folder: planets.clj and core.clj. I am having problems and I need help. What I am doing wrong? * * *;; In the file planets.clj:* (ns project.planets) (let [planets (doto (Object.)

Re: Tree vaadin?

2011-06-26 Thread Antonio Recio
*Could* it *possible* to use a list with peek and pop to create the planets and moons list? -- 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 -

Re: Tree vaadin?

2011-06-26 Thread Antonio Recio
Could anyone write the planet array of objects? -- 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

Re: Tree vaadin?

2011-06-26 Thread Antonio Recio
I could be fine this? (def planets (object-array [[Venus] [Earth The Moon] [Mars Phobos Deimos]])) -- 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

Re: Tree vaadin?

2011-06-26 Thread Antonio Recio
How I can translate this in clojure? for (int i=0; iplanets.length; i++) { String planet = (String) (planets[i][0]); tree.addItem(planet); -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

struct sharing same key?

2011-06-26 Thread Antonio Recio
I would like to create an struct with the names of differents nationalities. When people are the same nationality I would don't need to repeat again the nationality. Is there any way t0 get that. For example, I would like to write something like that: (defstruct person :nationality :first

table vaadin?

2011-06-25 Thread Antonio Recio
I am having problems to translate this table vaadin in java to clojure: ;; Java Table table = new Table(This is my Table); table.addContainerProperty(First Name, String.class, null); table.addContainerProperty(Last Name, String.class, null); table.addContainerProperty(Year,

Re: table vaadin?

2011-06-25 Thread Antonio Recio
It seems there is some error importing com.vaadin.ui.Table. What does it mean cannot be cast to clojure.lang.IFn? How I can solve it? * * *exception* javax.servlet.ServletException: java.lang.ClassCastException: com.vaadin.ui.Table cannot be cast to clojure.lang.IFn *root cause*

Re: Conversion of one java example to clojure?

2011-06-24 Thread Antonio Recio
I am newbie. Could be better like this? (def brownFox The quick brown fox jumps over the lazy dog.) -- 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

Optimize .addComponent?

2011-06-23 Thread Antonio Recio
I would like to use only one time .addComponent and don't repeat it each time that I need to add something. How I can do it? Perhaps with doto? Are there other way? It is possible to optimize it more? (defn -init [this] (let [app this] (.setMainWindow this (doto (Window. Test

Re: Optimize .addComponent?

2011-06-23 Thread Antonio Recio
I obtain an error: javax.servlet.ServletException: java.lang.IllegalArgumentException: Wrong number of args (3) passed to: vapp$add-components-BANG- java.lang.IllegalArgumentException: Wrong number of args (3) passed to: vapp$add-components-BANG- -- You received this message because you are

getMethods

2011-06-23 Thread Antonio Recio
I have found a function to get the methods of the classes in the book The Joy of Clojure, and I would like to use it in REPL. Instead of java.awt.Frame I would like to specify the library that I want writing something like (methods any.library). Which is the way to get it? (for [method (seq

Conversion of one java example to clojure?

2011-06-23 Thread Antonio Recio
I have tried to translate an example of vaadin in java to clojure. But I get errors. This is the java code: Panel panel = new Panel(Split Panels Inside This Panel); HorizontalSplitPanel hsplit = new HorizontalSplitPanel(); panel.setContent(hsplit); Tree tree = new Tree(Menu,

Re: Conversion of one java example to clojure?

2011-06-23 Thread Antonio Recio
There are not window in the java code, anyway I have added it in the clojure code (could be deleted). The window java code could be something like this: setMainWindow(new Window(Test application)); -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: Conversion of one java example to clojure?

2011-06-23 Thread Antonio Recio
Before I have forgotten to post the source of the function add (https://groups.google.com/d/topic/clojure/N1wmlOrGYj0/discussion): (defn add [composite components] Avoid repetition of .addComponent Instead of (doto (Window. \foo\) (.addComponent (Label. \bar\)) (.addComponent (Button.

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
I have tried to convert the example Cone5.java from VTK to clojure. I have write this ... but it doesn't work. Do you have any suggestion? *The original java:* import vtk.*; public class Cone5 { static { System.loadLibrary(vtkCommonJava); System.loadLibrary(vtkFilteringJava);

Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
*After the corrections I have this: * (ns project.core (:import (vtk vtkConeSource vtkPolyDataMapper vtkRenderWindow vtkRenderWindowInteractor vtkCamera vtkActor vtkRenderer vtkInteractorStyleTrackballCamera))) (defn main [] (let [cone (doto (vtkConeSource.)

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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

Re: Aw: Re: How to convert a VTK example from java to clojure?

2011-06-21 Thread Antonio Recio
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