Ubuntu – OpenJDK not running .jar files

jarjavaminecraftopenjdk

I've downloaded the .jar file for Minecraft, and I installed OpenJDK 6 from the software center, and I tried with 7 as well, but it keeps throwing the message "The file '/home/hunter/Downloads/minecraft.jar' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit." However, when I go into the properties to mark it as executable, as many people say to do, the box is not there.

Best Answer

To make the file executable:-

Press CTRL+T to open a terminal.

Enter this command chmod +x /home/hunter/Downloads/minecraft.jar