In my clojure project I have a dependency on the javax.jms.MessageListener library. I have this class file in my project in the following directory
My-project |java- | |src - | | |myJavaFile.java | | |jars - | | |library1.jar | | |library2.jar | | |libarary3.jar | |javax - | | |jms - | | |MessageListener.class |project.clj |src - | |my-program1.clj | |my-program2.clj | |my-program3.clj Then in my project.clj file I have my java-source-paths set to
:java-source-paths ["java/src" "java/src/jars/" "java/javax/jms"] but when I go to run my project via lein repl, I get compilation errors saying
java.lang.NoClassDefFoundError: javax/jms/MessageListener
Caused by: java.lang.ClassNotFoundException: javax.jms.MessageListener
From what I've read the messagelistener.class and my library jars should be included in my classpath when the project is running but that doesn't seem to be the case.