Created
June 29, 2011 20:58
-
-
Save anonymous/1054944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;sample-proj/project.clj | |
(defproject sample-proj "1.0.0-SNAPSHOT" | |
:main sample-proj.start | |
:description "A simple project for me to experiment with" | |
:dependencies [[org.clojure/clojure "1.2.1"] | |
[org.clojure/clojure-contrib "1.2.0"]]) | |
;;sample-proj/src/sample-proj/start.clj | |
(ns sample-proj.start | |
(:use [sample-proj.sample-functions :only [hello-world]])) | |
(defn -main | |
[] (hello-world)) | |
;;sample-projc/src/sample-proj/sample_functions.clj | |
(ns sample-proj.sample-functions) | |
(defn hello-world | |
"Simple hello world function" | |
[] (println "Hello, world!")) | |
;;error I am getting running "lein uberjar && java -jar *-standalone.jar": | |
$java -jar *-standalone.jar | |
Exception in thread "main" java.lang.NoClassDefFoundError: sample_proj/start | |
Caused by: java.lang.ClassNotFoundException: sample_proj.start | |
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: sample_proj.start. Program will exit. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment