Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I looked up several tutorials on how to install and they dont work. I do everything correctly but then i get this:

The file '/home/mike/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.

I run the minecraft.jar with the Sun java runtime 6 but it doesnt work:/. Any help would be greatly appreciated!

share|improve this question
add comment

2 Answers

The important part is in your message:

"The file '/home/mike/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."

Command line

The command:

sudo chmod +x /home/mike/Downloads/minecraft.jar

will make it executable. Be sure to read the 2nd part of the message: make sure you got it from a trusted source.


GUI

If it is easier for you, you can also view the file with Nautilus and richt click it, open Properties, open the Permissions tab, and tick the box that says:

Execute: Allow executing file as a program.

enter image description here


Other

From a very reliable source I have been told you can also do: java -jar /home/mike/Downloads/minecraft.jar

share|improve this answer
8  
Alternatively, he should also be able to use: "java -jar /home/mike/Downloads/minecraft.jar" –  Nerdfest May 16 '11 at 13:56
    
I tried all suggestions except java command, nothing worked. Any other things to be considered? –  Ravindra Gullapalli Oct 31 '12 at 20:07
add comment

Right click the minecraft.jar hit properties then do execute file as a program. This works for me and for others. Most likely this should get your minecraft to work.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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