On Sat, Apr 10, 2010 at 3:27 AM, Manfred Lotz <manfred.l...@arcor.de> 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 -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 To unsubscribe, reply using "remove me" as the subject.