Fixing java.lang.NoClassDefFoundError error

When we are testing our generated we get the following error:
java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JasperCompileManager