-2

i am trying to figure out how to convert a .jar minecraft file into Ubuntu-friendly. the problem is, that Ubuntu does not recognize java.

1

2 Answers 2

0

You hava to install Java JDK or Java JRE. If you don't want to develop something in java then you can install java to run this game. You can try any of these two method.

You can go to ubuntu software centre and search for java. Install "OpenJDK Java 7 Runtime".

You can use terminal to install OpenJDK

sudo apt-get update

sudo apt-get install openjdk-7-jre

enter image description here

After JRE installation right click on the minecraft.jar file and go to Properties. Go to Permission and then select as "Allow executing file as program". Then go to Open With tab and select OpenJDK Java 7 Runtime and click on Set as default.

enter image description here

Now you are good to go. Just double click on minecraft.jar file.

1
  • thank you all for the answers! I'm really amazed what you can do to make java work on Ubuntu! At first I have thought that playing minecraft on Ubuntu is IMPOSSIBLE. but now I know it will work :D Feb 17, 2016 at 3:48
0

First, add the Java repository:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

Then, install the Java runtime:

sudo apt-get install oracle-java8-installer

Once that's done, make sure that Minecraft has the permissions to launch:

chmod +x Minecraft.jar

Then, launch Minecraft like so:

java -jar Minecraft.jar

From this point on, you should also just be able to double-click on the Jarfile.

(src)

Not the answer you're looking for? Browse other questions tagged .