有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Lein安装/uberjar在尝试将依赖项中的类与genclass一起使用时失败

使用二阶依赖项中的类时获取ClassNotFoundException。当我运行lein uberjar或安装时,它会失败

java.lang.ClassNotFoundException: incanter.core.Dataset, compiling:(myproject/routes/evaluate.clj:1:1). 

然而,它是被编译的

Exception in thread "main" java.lang.ClassNotFoundException: incanter.core.Dataset, compiling:(myproject/routes/evaluate.clj:1:1)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:6730)
        at clojure.lang.Compiler.analyze(Compiler.java:6524)
        at clojure.lang.Compiler.analyze(Compiler.java:6485)
        at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5861)
        at clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2261)
        at clojure.lang.Compiler.analyzeSeq(Compiler.java:6723)
        at clojure.lang.Compiler.analyze(Compiler.java:6524)

我的项目。clj文件(所选零件)

(defproject myproject"0.2.2-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.7.0"]
               [grafter "0.7.0"]]
)

白炽灯。果心grafter使用数据集:0.7.0

我使用的clojure文件在哪里 我的项目/路线/评估。clj

(ns myproject.routes.evaluate
(:gen-class
    :name myproject.routes.evaluate
    :prefix "service-"
    :methods [^:static [executePipeline [java.lang.String java.lang.String java.lang.String] incanter.core.Dataset]]))

(defn service-executePipeline [data command pipeline]   
  (execute-pipeline data command pipeline))

我浏览了几篇关于gen-classaot解决方案的帖子。没有什么有用的。 我对Clojure很陌生。我不完全确定发生了什么事。 我能解决这个问题吗?我做错了什么


共 (0) 个答案