This question already has an answer here:

I am trying to launch Minecraft.jar and I cannot make it boot as an executable. I have gone into the properties and set it to executable, and I have installed jdk-7u55-nb-8-linux-x64.sh with and without superuser. I do run a x64 computer. I recieved the file from the website here. I have tried ./Minecraft.jar and java -jar Minecraft.jar

Output of java -jar Minecraft.jar

The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.6-jre-headless
 * gcj-4.7-jre-headless
 * openjdk-7-jre-headless
 * openjdk-6-jre-headless
Try: sudo apt-get install <selected package>

Output of ./Minecraft.jar

./Minecraft.jar: line 1: $'PK\003\004': command not found
./Minecraft.jar: line 2: $'\b\b\222t\354B\002': command not found
./Minecraft.jar: line 3: syntax error near unexpected token `)'


marked as duplicate by Lucio, karel, Eric Carvalho, Luis Alvarado Jul 24 '14 at 19:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What do you get when you type ./Minecraft.jar and java -jar Minecraft.jar? – jobin Apr 27 '14 at 1:49
  • 1
    The output of java -jar Minecraft.jar indicates you have not installed java, install it using the answer given here. – jobin Apr 27 '14 at 1:50

You need to download java or jdk 6 in software center. When downloaded right click on minecraft.jar ang go to its settings and allow it to launch as a program

  • The funny thing is that I installed Java straight from Oracle and I couldn't get it to work, but this did for some reason. Thanks! – llamah Apr 27 '14 at 12:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.