Hi Phil,
On Sat, 10 Apr 2010 09:54:29 -0700 Phil Hagelberg <[email protected]> wrote: > On Sat, Apr 10, 2010 at 3:27 AM, Manfred Lotz <[email protected]> > wrote: > > <------------------------------------snip----------------------------------> > > (defproject example "0.1" > > :description "Example application via nailgun" > > :dependencies [[org.clojure/clojure > > "1.1.0"] > > [org.clojure/clojure-contrib > > "1.0-SNAPSHOT"]] > > :main example) > > <------------------------------------snap----------------------------------> > > > > When now I try: java -server -jar example-standalone.jar > > I get: > > > > Exception in thread "main" java.lang.NoClassDefFoundError: example > > Caused by: java.lang.ClassNotFoundException: example > > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > > at > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at > > java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not > > find the main class: example. Program will exit. > > Using a single-segment namespace (example vs example.core) is advised > against as it interferes with some aspects of AOT. I suspect this is > what's causing the problem. > > http://clojure-log.n01se.net/date/2010-03-08.html#i43 > Hmm, I have to admit that I don't understand what I should change in terms of naming. But how were you able to test it when you tried out your code? -- Thanks, Manfred -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using "remove me" as the subject.
