You cannot have both a classpath full of jars and directories (via the -cp
option) and run directly from a jar.

Try java -classpath .;src;classes;clojure.jar clojure.main" instead

(http://clojure.org/repl_and_main)

2009/3/3 zodoz <zdz.r...@gmail.com>

>
> *sigh*...  Still no joy.  I've looked around for how to use the
> command and I finally got it to stop giving me directory permission
> errors, but Java still does not seem to be liking it.  I am now
> running it with "java -classpath .;src;classes -jar clojure.jar", but
> when I run (compile 'test) or (compile 'test.test) I still get
> "java.io.IOException: The system cannot find the path specified
> (test.clj:1)"...  Am I running the command java command wrong?
>
> P.S.  I tried the java command with "src" only and "." only as well.
>
> On Mar 3, 6:41 am, Mark Volkmann <r.mark.volkm...@gmail.com> wrote:
> > On Tue, Mar 3, 2009 at 12:58 AM, zodoz <zdz.r...@gmail.com> wrote:
> >
> > > I'm just larning Clojure and have been able to figure out everything
> > > so far via trial-and-error.  However, I cannot for the LIFE of me
> > > figure out how to compile anything.  I have tried every possible setup
> > > I can think of and I all I have is a sneaking suspicion that its a
> > > Vista issue.
> >
> > > Below I have listed my setup to make this as complete a question as I
> > > can, however the error I am getting is "java.io.IOException: The
> > > system cannot find the path specified (test.clj:1)" so I don't expect
> > > the problem to be with how my filesystem is setup but rather with
> > > classpaths.  Any suggestions and thanks in advance?
> >
> > > I have a simple extraction of the latest files, inside the "clojure"
> > > folder I have renamed the orrigonal "src" folder to "srcb" so that I
> > > can single out only my code.  I have a test.clj file whose contents
> > > are (basically the example given on the main site):
> > > (ns test
> > >        (:gen-class))
> >
> > > (defn -main
> > >        [gre]
> > >        (println (str "Hello " gre))
> >
> > > I have the following folder/file setup:
> > > clojure/
> > > ->clojure/classes
> > > ->clojure/src
> > > -->clojure/src/test
> > > --->clojure/src/test/test.clj
> > > -->clojure/src/test.clj
> > > ->clojure/test.clj
> >
> > > Each of these test.clj files have their own ns as either "test" or
> > > "test.test" depending on where they are in the filesystem.  The
> > > exception is the one in the clojure folder, this one I have tested it
> > > with both.
> >
> > The step-by-step instructions athttp://
> www.ociweb.com/mark/clojure/article.html#Compilingmight help,
> > especially step #8 related to setting the classpath.
> >
> > --
> > R. Mark Volkmann
> > Object Computing, Inc.
> >
>

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