Leiningen doesn't work with local JARs, rather it requires the Maven coordinates for dependencies so that it can download those. I'd suggest you figure out the Maven coordinates of your WEB-INF/lib/*.jar files and specify those in project.clj
Should you have local JARs not available on any Maven repo, try https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L118 or the lein-localrepo plugin. Shantanu On Wednesday, 27 May 2015 20:59:59 UTC+5:30, Peng Lin wrote: > > Yes, this works. I added javax to dependencies, and the errors about this > disappeared. But there is a lot of jars i used (in the WEB-INF/lib), how to > add all these jars once and ever? > > i found jvm-opts -Djava.library.path, but i don't know how to use it.... > > 在 2015年5月27日星期三 UTC+8下午9:01:15,Shantanu Kumar写道: >> >> You should probably include the right dependencies in project.clj, e.g. >> >> :dependencies [[javax.ws.rs/jsr311-api "1.1.1"]] >> >> You might actually need an implementation, e.g. Apache-CXF, or RestEasy >> etc. as dependency but I am not sure. >> >> Shantanu >> >> On Wednesday, 27 May 2015 16:28:54 UTC+5:30, Peng Lin wrote: >>> >>> Hi guys, >>> i'm new to clojure, and we have built our production using java. >>> It's a web service, named "ddi", which runs on tomcat. >>> >>> i use eclipse to build a clojure project, and set in project.clj: >>> :java-source-paths ["/Users/apple/ife/ddi/src"] >>> then, set project.Properties.Libraries: Apache Tomcat, JUnit 4, Web >>> App Libraries(ddi) >>> >>> then, i try to do "lein javac". And i got a lot of error like this: >>> >>> /Users/apple/ife/ddi/src/com/buildInfo/resource/InvokeEntryPoint.java:3: >>> 错误: 程序包javax.ws.rs不存在 >>> >>> import javax.ws.rs.Consumes; >>> >>> It's Chinese, means javax.ws.rs dose not existed. >>> >>> >>> How can i do this? >>> >>> >>> >> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.