Glad it's not me who keeps hitting this :0

"lein new app hello" seems to be more helpful for setting you up as I'd expect,
just need to wait for my fingers to learn to type it now.

On 14 November 2012 21:44, Marek Šrank <markus.mas...@gmail.com> wrote:
> Yep, leiningen now doesn't create -main function in the default template....
>
> Marek.
>
> On Wednesday, November 14, 2012 8:40:20 PM UTC+1, Alec Ramsay wrote:
>>
>> My bad: I did not have (defn -main[] (...)) defined.
>>
>>
>> On Wednesday, November 14, 2012 7:42:20 AM UTC-8, Alec Ramsay wrote:
>>>
>>> Thanks everyone for the feedback. To rule out any hyphen / underscore
>>> issues, I created a new project "hello". Got the same exception:
>>>
>>> Exception in thread "main" java.lang.ClassNotFoundException: hello.core
>>> 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 clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:247)
>>> at clojure.lang.RT.classForName(RT.java:2039)
>>> at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:199)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
>>> at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:207)
>>> at user$eval12.invoke(NO_SOURCE_FILE:1)
>>> at clojure.lang.Compiler.eval(Compiler.java:6511)
>>> at clojure.lang.Compiler.eval(Compiler.java:6501)
>>> at clojure.lang.Compiler.eval(Compiler.java:6477)
>>> at clojure.core$eval.invoke(core.clj:2797)
>>> at clojure.main$eval_opt.invoke(main.clj:297)
>>> at clojure.main$initialize.invoke(main.clj:316)
>>> at clojure.main$null_opt.invoke(main.clj:349)
>>> at clojure.main$main.doInvoke(main.clj:427)
>>> at clojure.lang.RestFn.invoke(RestFn.java:421)
>>> at clojure.lang.Var.invoke(Var.java:419)
>>> at clojure.lang.AFn.applyToHelper(AFn.java:163)
>>> at clojure.lang.Var.applyTo(Var.java:532)
>>> at clojure.main.main(main.java:37)
>>>
>>>
>>> I'm not using gen-class.
>>>
>>> Any other thoughts?
>>>
>>> I could be way off base, but it feels like something's not right in the
>>> repo, dependencies, or search path. Is there a way to reset all of these /
>>> make sure they're all right?
>>>
>>> Thanks ...
>>>
>>>
>>> On Tuesday, November 13, 2012 4:11:58 PM UTC-8, Alec Ramsay wrote:
>>>>
>>>> When I do "lein run" now, I get "Exception in thread "main"
>>>> java.lang.ClassNotFoundException:".
>>>>
>>>> I'm early in the process of getting a Clojure development environment
>>>> set up--I coded a lot of LISP years ago and want to dust off my skills with
>>>> Clojure--and I have previously successfully done the following on Mac OS X
>>>> 10.7.5:
>>>>
>>>> Installed Leiningen using Brew--this installed a V1 version
>>>> Created and run projects ("lein new"; "lein run"; etc.)
>>>> Everything worked great
>>>>
>>>> However, I wanted to use nREPL in Aquamacs, so I needed lein 2.x. The
>>>> only way I could get lein2 installed was using these steps. After 
>>>> completing
>>>> them, I successfully tested nREPL inside Aquamacs. Again things seemed to
>>>> work great.
>>>>
>>>> But while "lein new" still works, "lein run" does not. I get the
>>>> following exception:
>>>>
>>>> Exception in thread "main" java.lang.ClassNotFoundException:
>>>> http_hello3.core
>>>> 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 clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:247)
>>>> at clojure.lang.RT.classForName(RT.java:2039)
>>>> at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:199)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
>>>> at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:207)
>>>> at user$eval12.invoke(NO_SOURCE_FILE:1)
>>>> at clojure.lang.Compiler.eval(Compiler.java:6511)
>>>> at clojure.lang.Compiler.eval(Compiler.java:6501)
>>>> at clojure.lang.Compiler.eval(Compiler.java:6477)
>>>> at clojure.core$eval.invoke(core.clj:2797)
>>>> at clojure.main$eval_opt.invoke(main.clj:297)
>>>> at clojure.main$initialize.invoke(main.clj:316)
>>>> at clojure.main$null_opt.invoke(main.clj:349)
>>>> at clojure.main$main.doInvoke(main.clj:427)
>>>> at clojure.lang.RestFn.invoke(RestFn.java:421)
>>>> at clojure.lang.Var.invoke(Var.java:419)
>>>> at clojure.lang.AFn.applyToHelper(AFn.java:163)
>>>> at clojure.lang.Var.applyTo(Var.java:532)
>>>> at clojure.main.main(main.java:37)
>>>>
>>>> My project.clj looks like this:
>>>>
>>>> (defproject http_hello3 "0.1.0-SNAPSHOT"
>>>>   :description "http hello"
>>>> ;  :url "http://example.com/FIXME";
>>>> ;  :license {:name "Eclipse Public License"
>>>> ;            :url "http://www.eclipse.org/legal/epl-v10.html"}
>>>>   :dependencies [[org.clojure/clojure "1.4.0"]])
>>>>
>>>> I've done a lot of searching and tried several different things, to no
>>>> avail. I'd appreciate any pointers you can give me. Thanks ...
>>>>
> --
> 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