I've never used (or heard of it until now), but JJ Edit runs on a Mac, right?
So it looks like you input the source code, press compile, and if there are no errors and JAR file is produced? Then you can either press run, or find the JAR file and run it there. Is that right?
Do you get the error when pressing the run button or when you try to run the JAR file or both?