Exception when trying to run the REPL

2012-04-26 Thread Cole Rowland
I'm new to Clojure and anything having to do with Java or the JVM.

I downloaded and unzipped clojure 1.4 and when I run java -cp
clojure-1.4.0.jar clojure.main I get the following error:

Exception in thread main java.lang.NoClassDefFoundError:
clojure.main
   at gnu.java.lang.MainThread.run(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: clojure.main not found in
gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.10)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at java.lang.ClassLoader.loadClass(libgcj.so.10)
   at gnu.java.lang.MainThread.run(libgcj.so.10)

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


Re: Exception when trying to run the REPL

2012-04-26 Thread Phil Hagelberg
Cole Rowland cole.w.rowl...@gmail.com writes:

 I'm new to Clojure and anything having to do with Java or the JVM.

It looks like you're trying to use gcj or something; you'll be better
off with OpenJDK. Also, using Clojure from the raw jar file is very
cumbersome; if you are getting started I recommend Leiningen:
http://leiningen.org

-Phil

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