Minecraft

From WebOS Internals
Revision as of 11:51, 13 September 2011 by Thomascoe (talk | contribs)
Jump to navigation Jump to search

Running Minecraft in webOS

Instructions for running Minecraft.jar in an Ubuntu Chroot using Xecutah on webOS 3.x.

Set up an Ubuntu Chroot

Install the OpenJDK JRE

  • Open Xecutah, start XServer, XTerm, and the Ubuntu 11.04 Chroot (in that order). In the command line that opens, run the following commands:
sudo apt-get install java-common
sudo apt-get install default-jre

This will allow Java applications to be executed within the Ubuntu Chroot.

Transfer Files to Device

  • Connect your device via USB to your computer and select 'USB Drive'

minecraft.jar

1. Download minecraft.jar from Minecraft.net.

2. Copy minecraft.jar to the root directory of your device.

liblwjgl.so

1. Download liblwjgl-java-jni_2.5+dfsg-3_armel.deb.

2. Open liblwjgl-java-jni_2.5+dfsg-3_armel.deb in an archive manager, such as 7zip.

3. Navigate to data.tar.gz\data.tar\.\usr\lib\jni\

4. Extract liblwjgl.so from the archive.

5. Copy liblwjgl.so to the root directory of your device.

libjinput.so

1. Download libjinput-jni_20100502+dfsg-4_armel.deb.

2. Open libjinput-jni_20100502+dfsg-4_armel.deb in an archive manager, such as 7zip.

3. Navigate to data.tar.gz\data.tar\.\usr\lib\jni\

4. Extract libjinput.so from the archive.

5. Copy libjinput.so to the root directory of your device.

Copy minecraft.jar into your Ubuntu Chroot

  • Open Xecutah and start XServer and XTerm, but DO NOT start the Ubuntu Chroot.
  • In the open command line, type the following:
cp /media/internal/minecraft.jar /media/ext3fs/ubuntu-natty-chroot/

Run Minecraft for the first time

  • In Xecutah, start XServer, XTerm, and the Ubuntu Chroot.
  • Type the following to launch minecraft.jar:
java -jar minecraft.jar

You should see the Minecraft Launcher open. Right now the game probably will not function as we have not yet replaced the liblwjgl.so and libjinput.so files. Go to card view and toss the card off the screen.

Replace liblwjgl.so and libjinput.so

  • Open Xecutah and start XServer and XTerm, but NOT the Ubuntu Chroot.
  • In the command prompt, type the following:
cp -f /media/internal/liblwjgl.so /media/ext3fs/ubuntu-natty-chroot/root/.minecraft/bin/natives/
cp -f /media/internal/libjinput.so /media/ext3fs/ubuntu-natty-chroot/root/.minecraft/bin/natives/

If you wish, you may now delete minecraft.jar, liblwjgl.so, and libjinput.so off your USB drive as you will no longer need them.

Launch Minecraft

  • Open Xecutah and start XServer, XTerm, and the Ubuntu Chroot
  • In the command prompt, type:
java -jar minecraft.jar

Minecraft should now launch properly.