https://www.oracle.com/java/technologies/javase/jdk18-archive-downloads.html
^^^^^ install java
^^^^^
install java
run this command in the directory with SnakeGame.jar java -jar SnakeGame.jar
java -jar SnakeGame.jar
play snake