2014-11-11 2 views
3

저는 Clojure를 위해 시소를 사용하여 작은 창을 만들려고합니다. 내가 사용하는 JAR 파일을 만들려고 할 때, : classpath에서 seesaw/core.clj를 찾을 수 없습니까?

lein uberjar 

나는 Windows 용 명령 행에 다음과 같은 오류가 얻을 : leiningen를 사용

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) 

, 난 새로운 응용 프로그램을 만든 다음 한 내 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])) 

을하고있는 core.clj에서

(내 guidemo 프로젝트에 모두) 간단한 윈도우를 생성하기 위해 다음과 같은

제 질문은 어떻게 내 수업 경로에 seesaw/core.clj를 설정합니까? Im는 leiningen의 장면에 아주 새롭고 시소를 사용합니다. daveray가 대답 한 예제 중 대부분은 시소 내부의 예제를 실험하는 것과 관련이 있습니다. 이 프로젝트를 제외한 다른 프로젝트에서 lein 연산 (lein help, lein compile)을 실행하는 데 아무런 문제가 없습니다.

Ive가 daveray의 github에 시소의 전체 레포를 다운로드했습니다. 내 guidemo 폴더에 있어야합니까? 그렇다면 어디에서?

Im 실행 중 2.5.0. Java on 1.7.0_67

모든 도움을 주신 분들께 감사드립니다. 지난 4 시간 동안 내 머리카락을 잡아 당겨서 모든 것을 설정했습니다.

답변

2

당신은 당신의 "project.clj"

(ns guidemo.namespace 
(:gen-class) 
(:require [seesaw.core :as seesaw])) 
다음 사항이 필요하지 않습니다
관련 문제