Changing colons to semicolons did it! I guess since the classpath is a
string that's passed to Java it still treats it like it would any path on
Windows, even though I'm using it through Cygwin.

Thanks again!

On Thu, Jul 21, 2011 at 6:49 PM, Brenton <bashw...@gmail.com> wrote:

> That clojure.jar file is clojure 1.3.
>
> Something is wrong with the classpath.
>
> Here are a couple of things to try:
>
> - when using a batch file the classpath must be delimited with
> semicolons instead of colons
> - try replacing lib/* with an explicit list everything that is in lib
> - something like lib/clojure.jar;lib/goog.jar;lib/compiler.jar
>
> Just some thoughts
>
> On Jul 21, 5:50 pm, Tamreen Khan <histor...@gmail.com> wrote:
> > Hmm, I have clojure.jar, but not clojure-1.3.jar in clojurescript/lib
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 21, 2011 at 5:49 PM, Tamreen Khan <histor...@gmail.com>
> wrote:
> > > Yes. It worked fine.
> >
> > > On Thu, Jul 21, 2011 at 5:48 PM, Devin Walters <dev...@gmail.com>
> wrote:
> >
> > >>  Did you run script/bootstrap?
> >
> > >> You need a clojure-1.3 jar in your clojurescript/lib directory.
> >
> > >> On Thursday, July 21, 2011 at 4:45 PM, Tamreen Khan wrote:
> > >> > Hi everyone, I'm trying to get the repl for Clojurescript to start
> under
> > >> Windows but keep running into the following error:
> >
> > >> > Exception in thread "main" java.lang.NoClassDefFoundError:
> clojure/main
> > >> > Caused by: java.lang.ClassNotFoundException: clojure.main
> > >> >  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > >> >  at java.security.AccessController.doPrivileged(Native Method)
> > >> >  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > >> >  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >> >  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > >> >  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > >> > Could not find the main class: clojure.main. Program will exit.
> >
> > >> > I've tried both running the script under cygwin and putting the
> contents
> > >> into a batch file and running it with cmd.exe (it shouldn't be a
> problem
> > >> since script/repl just contains one command which starts the java
> runtime
> > >> with a few options). I've even tried changing the forward slashes in
> the
> > >> command to backslashes.
> >
> > >> > Also, I'm running these commands from the clojurescript root
> directory.
> > >> Even though it probably won't affect it I've set CLOJURESCRIPT_HOME as
> well.
> > >> Any ideas?
> >
> > >> >  --
> > >> >  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(mailto:
> > >> 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 (mailto:
> > >> clojure+unsubscr...@googlegroups.com)
> > >> >  For more options, visit this group at
> > >> >http://groups.google.com/group/clojure?hl=en
> >
> > >> --
> > >> 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
>
> --
> 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
>

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