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) (.SetInput writer (.GetOutput reader)) (.Update writer))) (read-write-image (nth *command-line-args* 2) (nth *command-line-args* 3))
When I write this in the terminal: clojure read-write-image.clj input.png output.png I get this error: Exception in thread "main" java.lang.IndexOutOfBoundsException -- 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