简体   繁体   中英

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) )

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)

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.

Please help.

In order for a :require to work successfully the relevant .jar file needs to be available on the Java classpath.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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