Problems with java archetype parser

Hi everyone,

I’ve downloaded the java parser jar from openehr site (http://www.openehr.org/svn/ref_impl_java/TRUNK/docs/download.htm) and made a simple application to try it, but when I want to parse an archetype I get:

Exception in thread “main” java.lang.NoClassDefFoundError: org/openehr/rm/support/measurement/SimpleMeasurementService

at se.acode.openehr.parser.ADLParser.(ADLParser.java:49)

at se.acode.openehr.parser.ADLParser.(ADLParser.java:56)

at Main.main(Main.java:55)

Attached is my code, I use all the jars I’ve downloaded from the openehr site, and the XStream lib to see the content of the parsed instance of the archetype (this code is never executed because the error).

Any ideas?

Thanks a lot!
Cheers,
Pablo.

(attachments)

Main.java (2.08 KB)

Seems you have one jar missing in your classpath: measure-serv-0.1-SNAPSHOT.jar

If you cannot find it you can build it from the sources (as soon as it stops asking for a password in read mode):
http://www.openehr.org/svn/ref_impl_java/TRUNK

And then do a mvn install on the measure-serv module.

Cheers
Tony Lâmpada

Hi, thanks, it seems this page is out of date and doesn’t have the jar you mention :frowning:

http://www.openehr.org/svn/ref_impl_java/TRUNK/docs/download.htm

Cheers,
Pablo.