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 828 times
0
kos
- 41,268
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
- 41,268