[BZ-1072679] manage NoClassDefFoundError as a ClassNotFoundException raising a compilation error when it occurs