I solved my problem. Ever step I took lead me to the solution. The problem was with how I was creating the new artifact.
When creating the new artifact, I selected JAR and then a popup window displays default settings. It has me app module selected and the main class below is blank.
I was selecting the main class and it was producing an error. When I just accepted the default options left the main class blank, the artifact was created.