Couldn't find dropaw / core.clj on the classpath?
I am trying to make a small window using a swing for Clojure. However, when I try to create a JAR file using:
lein uberjar
The following error appears on the Windows command prompt:
Caused by: clojure.lang.Compiler$CompilerException: java.io.FileNotFoundExceptio
n: Could not locate seesaw/core__init.class or seesaw/core.clj on classpath: ,
compiling:(C:\Users\J\Desktop\test\guidemo\project.clj:10:36)
Using leiningen I created a new app and in my project project.clj
(defproject guidemo "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[seesaw "1.4.4"]]
:main ^:skip-aot guidemo.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
(ns guidemo.namespace
(:gen-class)
(:require [seesaw.core :as seesaw]))
and the following to create a simple window in core.clj (both in my guidemo project)
(ns guidemo.core
(:gen-class)
(:require [seesaw.core :as seesaw]))
(def window (seesaw/frame
:title "First Example"
:content "hello world"
:width 200
:height 50))
(defn -main
[& args]
(seesaw/show! window))
My question is how do I set setaw / core.clj to my classpath? I'm pretty new to the leiningen scene and swing use. Most of the examples I've seen will answer experimenting with examples inside a swing. I have no problem doing lein operations (lein help, lane compilation) on projects other than this one.
I have uploaded the entire swing repo to daveray github. Should it be in my guidemo folder? If so, where?
Im running leiningen 2.5.0. in Java 1.7.0_67
Thanks for the help guys, I've been pulling my hair for the last 4 hours while tweaking everything.
source to share