I searched the archives and google but cannot find an example.
How do I call main?
packge thefoo;
public class Foo {
public static void main(String[] args) {
System.out.println(args[0]);
}
}
I tried
(import '(thefoo Foo))
(. Foo (thefoo/main ["test"]))
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be
cast to [Ljava.lang.String
I thought that PersistentVector and arrays were identical.
Surely I can't be the first to try this but I cannot find an example.
Tim
--
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