Do you know from eclipse the classes can be jarred up with a compilation errros? Yes. We can do. Often developers forget to untick the below option.
Not sure why this option is built by eclipse!

Below is the sample java class coded with errors.

This class file exported to jar successfully with the eclipse option ( export with compilation errors).
Please make sure to uncheck the eclipse jar export option to avoid compilation classes to be exported to jar file.

