Java 1.5上的Clojure uberjar

时间:2016-05-18 20:15:39

标签: java deployment clojure

我用lein uberjar创建了一个uberjar,我可以通过以下方式在我的机器上运行它(安装了java 1.8):

java -jar my.jar

在我要部署它的服务器上,我收到错误。但是,只安装了Java 1.5版。以下是错误消息和完整版本说明:

java -jar my.jar
Exception in thread "main" java.lang.NoClassDefFoundError: clojure.core.protocols$seq_reduce
[...]



java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.7 20120313 (Red Hat 4.4.7-16)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1 个答案:

答案 0 :(得分:3)

您需要升级到Java 1.6。从版本1.6 Clojure drops support for Java 1.5开始。