Confirm that you added ONLY the package directory and the class files
You gotta get this part right. Look at the bottom window that says “Contents of Ejb1” and verify that the only thing in the JAR besides the META-INF directory is the headfirst directory (including the contents of the directory). The classic mistake we see all the time (not that you’d ever do that) is to add only the class files, but not the package directory. Be sure that you have the headfirst directory (and not the classes directory) with the three class files. Another common mistake is to add the source files instead of the class files. So don’t feel bad if it happens to you.
Verify that you have the right classes (and package directory)
If you don’t, select them from the bottom window, click Remove, and start over.
Click OK when you’re done, then click NEXT

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access