简体   繁体   English

Eclipse逆时针:如何将clojure / contrib / sql添加到类路径。

[英]Eclipse Counterclockwise: How do I add clojure/contrib/sql to my class path.

In my code, I have: (ns Test.core (:require clojure.contrib.sql) ) 在我的代码中,我有:(ns Test.core(:require clojure.contrib.sql))

The error statement is the following: FileNotFoundException Could not locate clojure/contrib/sql__init.class or clojure/contrib/sql.clj on classpath: clojure.lang.RT.load (RT.java:443) 错误语句如下:FileNotFoundException无法在类路径上找到clojure / contrib / sql__init.class或clojure / contrib / sql.clj:clojure.lang.RT.load(RT.java:443)

How do I fix this? 我该如何解决? Please give very detailed step by step instructions to doing this. 请为此提供非常详细的分步说明。 I know there are other questions on this before but I'm unable to comment to ask and I can't exactly follow the instructions bc I'm new to eclipse manipulating files in general. 我知道之前还有其他问题,但是我无法发表评论,也无法完全按照bc的说明进行操作,因为我一般不熟悉eclipse操作文件。

Please help. 请帮忙。

In order for a :require to work successfully the relevant .jar file needs to be available on the Java classpath. 为了使:require成功工作,相关的.jar文件必须在Java类路径上可用。

You can set this up manually, but typically it is better to add the dependency using either Leiningen ( project.clj ) or Maven ( pom.xml ) - either of which will automatically download and set up the dependencies for you. 您可以手动设置它,但是通常最好使用Leiningen( project.clj )或Maven( pom.xml )添加依赖项-二者都会自动为您下载并设置依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM