I did CounterClockWise setup with Eclipse Indigo (OS: Windows 7) and wrote the first Clojure program. It ran nicely.
But today when I opened my Clojure project and tried to run the same program I am getting this exception.
This must be something silly but being new to Clojure I don't know how to fix it.
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)
Exception in thread "main"
Check the project Build Path (right-click on the project name in the navigator and go Build Path > Configure Build Path... if that's present or Properties, then Java Build Path, otherwise). Sounds like the Clojure JAR is missing.
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Thanks Sean, that resolved my issue. I am slowly getting the hang of it.
I found the reason which caused this issue.
I accidentally installed Maven in this Clojure project (I don't know about Maven).
And that did remove all the required jar files from build path.
Let me figure out how does pom.xml works.
Thanks and Regards,
~Sujoy
Can you smell this for me? I think this tiny ad smells like blueberry pie!
a bit of art, as a gift, that will fit in a stocking