MultiMC launches with no problems. I can't get Minecraft to launch by double-clicking it: it will open in Archive Manager. When I run the command java -jar minecraft.jar
, Terminal returns the error Error: Unable to access jarfile minecraft.jar
.
Asked
Active
Viewed 811 times
0

kos
- 35,891
-
Related: https://askubuntu.com/questions/101746/how-can-i-execute-a-jar-file-from-the-terminal?rq=1 and https://askubuntu.com/questions/192914/how-run-a-jar-file-with-a-double-click?rq=1 – A.B. Apr 29 '15 at 11:55
1 Answers
0
Both things are happening because minecraft.jar
is not marked as executable by your user; assuming that you are the owner of the file, run this command from the command-line to mark it as executable by you:
chmod u+x <path_to_jar_file>
*<path_to_jar_file> = full path to the .jar
file
If you want it to be run from the member of your user's group as well, run this instead:
chmod ug+x <path_to_jar_file>
*<path_to_jar_file> = full path to the .jar
file
If you want it to be run from anyone, run this instead:
chmod a+x <path_to_jar_file>
*<path_to_jar_file> = full path to the .jar
file
If you're not the owner, you can own the file and set its group to your user's group by running this command:
chown <username>:<username> <path_to_jar_file>
*<username> = you user's username; <path_to_jar_file> = full path to the .jar
file

kos
- 35,891
-
-
@PirosStaccatta Then you're typing the wrong path. The most straightforward way to get the correct path is to drag and drop the executable in the Terminal's window. – kos Apr 29 '15 at 09:19
-
that's odd. I marked it as executable every time I downloaded it. I must not be the owner then – Piros Staccatta Apr 29 '15 at 09:24
-
@PirosStaccatta You can own the file by running
sudo chown <username>:<username> <path_to_jar_file>
(where<username>
= your username) – kos Apr 29 '15 at 09:26 -
@PirosStaccatta Also if something is still wrong please add the output of
ls -l <path_to_jar_file>
to your question by editing the question's body – kos Apr 29 '15 at 09:29