You have to download java. Then you can open a terminal, make sure you're in the same directory as the jar file and run the command:
java -jar desktop-pets.jar