The command I would use to execute a jar file called MyJar.jar file would be:

$ java -jar MyJar.jar

('$' is my prompt, not part of the command.)