Ubuntu – How to mark a .jar file as executable on Xubuntu 13.04

13.04chmodminecraftxubuntu

I'm trying to get the minecraft.jar file to execute , but the check box won't come up when I go to Properties > Permissions. I don't know much about the terminal and its commands so if someone could post a simple step by step solution on how to mark it that would be great.
People keep saying to use a chmod command but I have no idea what that is, so you are forewarned if I say "over my head".

Best Answer

Assuming the file in question is in your $HOME (just move it with the GUI otherwise), open a terminal (that much should be easy :) then run this command:

chmod a+x jarfile.jar

Change jarfile.jar to the actual name of the file in question of course. If that gives you an error, the file is probably not owned by your user, so try again with sudo:

sudo chmod a+x jarfile.jar
Related Question