I can't seem to run/execute Minecraft.jar, please help

So I installed Linux on my chromebook, xfce4 I installed openjdk with terminal and also can't execute the file with the terminal or using the GUI. I clicked on properties and permission but there is no Execute the file option. Any help would be appreciated also I can't make the file executable with the terminal.

enter image description here

This shows up in the propertied.

3

5 Answers

It seems to me that you're just not in the right folder. Run the following command:

cd ~/Downloads

You'll notice your prompt change to say something linethe following:

anas@localhost:Downloads$

This means that your terminal window is now pointing to your Downloads folder, and you can access files in that folder directly. Now, run your launcher command:

java -jar Minecraft.jar

Minecraft should start right up.


Linux is picky with directory structures in the terminal, especially when it comes to a relative path. For example, assuming you're in your home folder (~):

  • java -jar Minecraft.jar will attempt to launch Minecraft.jar in your current directory (or /home/anas/Minecraft.jar)
  • java -jar Downloads/Minecraft.jar will attempt to launch Minecraft.jar inside the Downloads subdirectory of the current directory (or /home/anas/Downloads/Minecraft.jar)
  • java -jar /home/anas/Downloads/Minecraft.jar will attempt to launch the jarfile at /home/anas/Downloads/Minecraft.jar exactly as written.
4

Look at the following link for more information. Try running this command.

java -jar Minecraft.jar

How can I execute a .jar file from the terminal

You can check your java version with the following.

java -version
You can install java with the following.
sudo apt-get install default-jre
2

You should create script:

#/bin/bash
java -jar ~/path/minecraft.jar
echo 

And it should work.

Have you tried this geek Ubunutu > Minecraft tutorial?

Once in the Jar is downloaded, you are supposed to check the box "Allow Executing This File as a Program", which I do not see on your properties box. If that is the case you must cd to the directory the file is in and type chmod u+x Minecraft.jar . This will change the file to be executable. Once it is, you are supposed to be able to double click to launch it.

One common problem is the file doesn't completely download. Make sure the file size is as expected.

A second, configuration only issue, is a security scenario where routines prevent you from changing a downloaded file to be executable. This file must be white-listed first before you can make it executable.

The third issue is a very annoying problem with minecraft: it often refuses to run twice. You have to reboot the computer to play it a second time.

2

I missed that you posted a xfce OS question in an Ubuntu forum. The option to make that file executable and run it is not much of an option in that flavor.

Toms Hardware solved this issue, however, the recommended option is to install the package from the repositories to make Minecraft an authenticated software install (and able to run)

sudo add-apt-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update
sudo apt-get install minecraft-installer

More info:

If you cannot get it to install with the above installation commands, then the commands to precisely execute the jar file is:

cd ~/Downloads
java -jar ./Minecraft.tar
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like