I recently had the pleasure of setting up an ant build of OpenMRS on our new servers. After installing ant and the OpenMRS source code I kept getting a never-before-seen error when building:

No supported regular expression matcher found

I made sure I had jdk 1.6 installed. I tried upgrading to Ant 1.7 (from 1.6.5).

I ran an “ant -diagnostics”. It wasn’t showing the optional ant jars so I dropped all of the jars into the ant home lib directory. Now the jars were showing up but I was still getting the same error as before.

The solution ended up being that Ant lied to me. It was actually looking for the jars in /usr/share/java/ant (not in its reported /usr/share/ant). The puzzling thing is that Ant tells me it finds the jars when running “ant -diagnostics”.

I ended up installing the optional ant jars via yum. (or apt-get if you’re on a debian flavor) Yum didn’t have the explicit ant-optional package, so I just installed all ant-*.jar files. Voila! Successful building via ant is now possible.

This is in the openmrs category tagged as , ,

1 comment »


It always bothered me that after I edited files on the filesystem I would have to then explicitly tell Eclipse to “Refresh” in order to see them.  I stumbled across an option in the Preferences today that completely fixes it with just the click of a button!

Window –> Preferences –> General –> Workspace : Refresh Automatically

This the “File out of date” error I would get when copying and pasting files within Eclipse after an Ant build.  It also makes files appear magically in Eclipse when working directly with the filesystem (like when using Tortoise).

This is in the babble category tagged as

Add a comment »