I recently bought Minecraft and installed it on Ubuntu (I have played it on a Windows with no problems). I have JDK Java 6 runtime. When I try to open Minecraft with Java it gives me an error message that says it is not marked as executable. It is .jar. Do I need to convert it to .exe? If so, how? I am relatively new to Ubuntu and would appreciate any help!
|
|
||||
|
|
In order to mark the file as executable using terminal you can use the following
|
|||
|
|
|
The solution is simple. Navigate to the .jar file in Nautilus(File manager) and right-click it. Go to the Permissions tab and check the box labeled:
This sets the executable bit the JDK was complaining about. But why is this, and what is this "executable bit" thingy? In Linux, file extensions have less of a role in determining what to do with files. Instead, Linux uses magic numbers, which are basically headers. If you are familiar with Linux scripting, the shebang (The Linux also keeps file permissions. It stores the user and group IDs for each file and directory and a lost of what the owner, group, and everyone can do. Included in this is the executable bit. If you |
||||
|
|
|
I had the same problem when I used "open with java" but you don't have to alter permissions to play . By launching it from command line with java -jar minecraft.jar (assuming you are in the right folder) it will open regardless. |
|||
|
|
