I get this error when trying to parsing a HL7 message. I dont know why and how to fix it. I'm using hapi v2.2 . SO please help me. Thanks in advance!. Here is catlog!!!
08-28 15:03:28.552: E/dalvikvm(642): Could not find class 'ca.uhn.hl7v2.DefaultHapiContext', referenced from method com.example.hl7demo.MainActivity.onCreate
08-28 15:03:28.673: E/AndroidRuntime(642): java.lang.NoClassDefFoundError: ca.uhn.hl7v2.DefaultHapiContext
08-28 15:03:28.673: E/AndroidRuntime(642): at com.example.hl7demo.MainActivity.onCreate(MainActivity.java:38)
bases on this tutorial http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/ExampleParseMessages.html
It seems you forgot to add Hapi library to your build. If you using maven you just need to add appropriate maven dependencies as described here http://hl7api.sourceforge.net/using_maven.html