# Problems with java archetype parser

**URL:** https://discourse.openehr.org/t/problems-with-java-archetype-parser/14888
**Category:** Technical (archive)
**Created:** [28 April 2009 02:59 UTC](https://discourse.openehr.org/t/problems-with-java-archetype-parser/14888 "2009-04-28T02:59:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [28 April 2009 02:59 UTC](https://discourse.openehr.org/t/problems-with-java-archetype-parser/14888/1 "2009-04-28T02:59:06Z")

</div>

Hi everyone,

I’ve downloaded the java parser jar from openehr site ([http://www.openehr.org/svn/ref\_impl\_java/TRUNK/docs/download.htm](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](https://discourse.openehr.org/404) (2.08 KB)

---

<div class="post-metadata">

### Author: ![Tony\_Franca](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/t/bcef8e/32.png) [@Tony\_Franca](https://discourse.openehr.org/u/Tony_Franca)
#### Post date: [29 April 2009 12:39 UTC](https://discourse.openehr.org/t/problems-with-java-archetype-parser/14888/2 "2009-04-29T12:39:45Z")

</div>

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](http://www.openehr.org/svn/ref_impl_java/TRUNK)

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

Cheers  
Tony Lâmpada

---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [1 May 2009 21:06 UTC](https://discourse.openehr.org/t/problems-with-java-archetype-parser/14888/3 "2009-05-01T21:06:26Z")

</div>

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

> [http://www.openehr.org/svn/ref\_impl\_java/TRUNK/docs/download.htm](http://www.openehr.org/svn/ref_impl_java/TRUNK/docs/download.htm)

Cheers,  
Pablo.
