A better diagnostic error for corrupt or missing JARs.

Review by @gkossakowski