I'm right-clicking the minecraft.jar
file and going under the Properties tab and there is no checkbox that allows the file to be executable.
Neither the Open With nor command options are working either. Any ideas?
JAR
files are not executable in the same way as shell scripts and programs are. Rather, you need java
to run them.
Run the following:
java -version
If you get something like this, you have it installed and you can skip the Installation
step. If not, continue with the Installation
Step.
sudo apt-get update sudo apt-get install openjdk-8-jre
Now, after all that hard work, now you can run it! :)
Run:
java -jar filename
where filename
is the name of the JAR
file.
If you have any questions / comments, please comment on this answer. :) Thanks!
Use the minecraft-installer
:
sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update
sudo apt-get install minecraft-installer
Once installed, run Minecraft from the menu / Dash, login with your Minecraft account and the installation should start automatically.