From: Daniel W. <dw...@vi...> - 2013-08-27 22:15:04
|
i'm trying to use hapi in clojure in a lein project. i can tell lein has downloaded hapi because the first import line works, but the next one fails. but when i try to follow this example, i get a class not found exception: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html what am i doing wrong? here's my project.clj: (defproject hl7-test-messages "0.1.0-SNAPSHOT" :url "http://www.gnu.org/licenses/agpl.html"} :dependencies [[org.clojure/clojure "1.5.1"] [ca.uhn.hapi/hapi-base "2.1"]]] :main hl7-test-messages.core) and my core.clj: (ns hl7-test-messages.core (:gen-class)) (import '(ca.uhn.hl7v2 DefaultHapiContext HL7Exception HapiContext)) (import 'ca.uhn.hl7v2.model.v24.message.ADT_A01) ; fails here with ; class not found (import '(ca.uhn.hl7v2.model.v24.segment MSH PID)) (import 'ca.uhn.hl7v2.parser.Parser) (defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!")) |