Yes, that did the trick.
Thank you.
Am 21.02.2012 02:53, schrieb Sean Corfield:
On Sat, Feb 18, 2012 at 1:29 PM, ClusterCatcluster...@mail.com wrote:
(ns test (:import (java.io File)))
This says import the File class from the package java.io
(ns test (:import (java.io.File)))
Try:
(ns
Wrong type of parens!
This works for me:
(ns test (:import [java.io File]))
it's a bit of a gotcha, though.
/Linus
On 2/18/12 10:29 PM, ClusterCat wrote:
Hello,
I have two newbie questions:
First
-
(ns test (:import (java.io File)))
I can use File like this
(let [file (File.
Hello,
I have two newbie questions:
First
-
(ns test (:import (java.io File)))
I can use File like this
(let [file (File. filename)])))
When using this import
(ns test (:import (java.io.File)))
I get an Unable to resolve classname: File which I don't understand.
Second
--
With this
On Sat, Feb 18, 2012 at 1:29 PM, ClusterCat cluster...@mail.com wrote:
(ns test (:import (java.io File)))
This says import the File class from the package java.io
(ns test (:import (java.io.File)))
Try:
(ns test (:import java.io.File))
(let [filename (first *command-line-args*)]