Take a look at Nightcode and/or counterclockwise (eclipse plugin) it might help
you manage your project more easily. Both provide clojure environments and lein.
Chris
From: Daniel Watson [mailto:dwat...@visiontree.com]
Sent: Wednesday, August 28, 2013 12:05 AM
To: James Agnew <ja...@jamesagnew.ca>
Cc: hl7api-devel <hl7api-devel@lists.sourceforge.net>
Subject: Re: [HAPI-devel] clojure hapi class not found
http://gitorious.org/ozzloy/create-a-message here it is!
On Tue, Aug 27, 2013 at 3:36 PM, Daniel Watson
<dwat...@visiontree.com<mailto:dwat...@visiontree.com>> wrote:
i actually just found out the same thing, and i can confirm it totally works!
sure, i'll put up a simple transliteration from java to clojure of that example.
i'm not well versed in java's environment (i just installed maven, for example)
or clojure (this is my second real lein project). so there's almost certainly
room for improvement in the result.
On Tue, Aug 27, 2013 at 3:29 PM, James Agnew
<ja...@jamesagnew.ca<mailto:ja...@jamesagnew.ca>> wrote:
Hi Daniel,
I've never user lein and I'm far from a Clojure expert, so I'm mostly guessing
here.. But you probably need the "hapi-structures-v24" dependency added to your
project. You may possibly also need to add slf4j-api?
If you do get this working and want to contribute a sample (even something as
simple as a Hello world with the two files you have here), we would be grateful
so that they could be added to our examples section!
Cheers,
James
On Tue, Aug 27, 2013 at 5:50 PM, Daniel Watson
<dwat...@visiontree.com<mailto:dwat...@visiontree.com>> wrote:
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!"))
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net<mailto:Hl7api-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel