Minecraft

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

Note that Minecraft is not working yet, but this page documents the progress towards that goal.

Set up an Ubuntu Chroot

 * Follow the instructions on the UbuntuChroot page.

Install the OpenJDK JRE
sudo apt-get install java-common sudo apt-get install default-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:

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.

cp /media/internal/minecraft.jar /media/ext3fs/ubuntu-natty-chroot/
 * In the open command line, type the following:

Run Minecraft for the first time

 * In Xecutah, start XServer, XTerm, and the Ubuntu Chroot.

java -jar minecraft.jar
 * Type the following to launch 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.

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/
 * In the command prompt, type the following:

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
java -jar minecraft.jar
 * Open Xecutah and start XServer, XTerm, and the Ubuntu Chroot
 * In the command prompt, type:

Login works fine, but then Minecraft crashes with the following error: org.lwjgl.LWJGLException: Could not init GLX