How can I run a java file on atom?


I am new to atom and have created a java code in atom, but I cannot find a way to run it. I’ve tried the script package but it came up with an error when I tried to run it.


What was the error?