Here is the step by step instructions to get it running and dubugging on Netbeans.

In Netbeans you start a new project. You must choose the type that says "with exisitng ant script".

The wizard opens.

Your location directory can be anything, it's where Netbeans stores it's project file

Hit next...

You browse to build.xml

Next...

Name project

Next ..

Project folder, I put same a location, don't know the difference.

Next...

build project... I use target "all"

Run project... I use "demoAdverseEventMif" others defaults are ok

Next...

source and package folders. I just use our "src" directory

Next...

Classpath... browse to our "lib" directory and pick hybernate, junit, jdom, Inspector, and saxon* jars

Hit finish and go get coffee while your disk spins.

Then just hit the RUN ICON on the toolbar

VOILA. the entire thing compiles and runs.

But you want to debug and put in break points so add these lines to any of the targets you want to debug. What they do is stop the JVM as soon as it loads your app, and waits for you to connect the debugger.

    <jvmarg value="-Xdebug"/>
    <jvmarg value="-Xnoagent"/>
    <jvmarg value="-Djava.compiler=NONE"/>
    <jvmarg value="-Xrunjdwp:transport=dt_shmem,server=y,address=jsig"/>

These go right after the line that starts like this

<sysproperty key="org.xml.sax.driver" ...

Now open your source file for

org.hl7.types.impl.CEimple.java

Put a breakpoint on the return statement line of the method valueOF().

Hit run icon. the JVM stops and says:

"Listening for transport dt_shmem at address: jsig"

Hit the debug icon on the toolbar to the right of the run button.

Fill in this info.

transport st_shmem

name jsig

Hit the continue button.