jar file not running after being compiled

Java
Everyone will shit on you and you will never find out what is wrong
go to the website to where this text came from and see a grade a example of this
  
https://www.reddit.com/r/programming/comments/gd1w21/my_jar_file_does_not_work_after_compiling_i_have/
Source

Also in Java: