On Sat, 15 May 2010 21:54:53 +0200
Peter Schuller <peter.schul...@infidyne.com> wrote:

> > I am running the following command line:
> >
> > c:\apps\jdk1.6.0\bin\java.exe -server -cp "C:\apps\clojure-1.2.0\\lib
> > \clojure-1.2.0-master-SNAPSHOT.jar;C:\apps\clojure-1.2.0\\lib\clojure-
> > contrib-1.2.0-SNAPSHOT.jar" clojure.main Blah.clj
> >
> > If Blah.clj does not exist, I get a FileNotFoundException.  However,
> > if Blah.clj exists, I get nothing.  It can contain valid Clojure code,
> > invalid text, whatever.  I've tried using various combinations of
> > flags too.
> 
> I have been starring at the command line and I can't spot what's wrong.

Except for the doubled \\'s (and I don't do enough windows to know
that that's an error), neither do I.

Which leads to the question: what's in Blah.clj? In particular,
there's nothing in clojure that automatically run things in the script
file; you have to explicitly invoke the main function at the end of
the script. If you don't, then invoking it on the command line will
just load it, and then exit without running anything.

    <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
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

Reply via email to