Download
You also need HP's Java 6 for PA-RISC (product Jdk60 or Jre60) installed in /opt/java6.
At Tenox's OS Archive jdk616022pa.depot.lz
Installing
On a Linux computer with internet access:
tar xzf minecraft-1.11.2-hpux11.11-hppa-20261129.tar.gz
cd minecraft-1.11.2-hpux11.11-hppa-20261129
./get-minecraft.sh
This downloads about 150 MB (1211 files) and writes
minecraft-1.11.2-hpux11.11-hppa-20261129-full.tar next to the directory.
Copy the -full.tar file to the HP-UX machine, then as root:
tar xf minecraft-1.11.2-hpux11.11-hppa-20261129-full.tar
cd minecraft-1.11.2-hpux11.11-hppa-20261129
./install.sh # into /opt/minecraft (--prefix DIR)
./install.sh --link /usr/local/bin # ...plus a "minecraft" command
Then, as the user who will play, from an X session:
/opt/minecraft/minecraft.sh
If your HP-UX machine has a curl that can do TLS 1.2, you can run ./get-minecraft.sh -n on it
directly instead. Set CURL=/path/to/curl, and CURL_OPTS="--cacert FILE" if its CA bundle is
out of date.
Saves, options and logs go in ~/.minecraft-1.11.2. The launcher is configured through environment
variables, described at the top of minecraft.sh:
| Variable |
Description |
| MC_USER |
Player name (default: your login name) |
| MC_HEAP |
Java heap size (default 1024m) |
| MC_SIZE |
Window size (default 854x480) |
| MC_DIR |
Game directory (default ~/.minecraft-1.11.2) |
| MC_DEBUG |
1 for LWJGL debug output |
| MC_JAVA_OPTS |
Extra JVM options |
| JAVA_HOME |
Where Java 6 is (default /opt/java6) |
To remove it, delete /opt/minecraft, and ~/.minecraft-1.11.2.
Requirements
- HP-UX 11.11 on PA-RISC 2.0
- HP's Java 6 for PA-RISC, JDK or JRE, in
/opt/java6. Tested with 6.0.22.
- HP's OpenGL runtime (
/opt/graphics/OpenGL/lib/libGL.2)
- A graphics card that does texturing in hardware. Tested with an ATI FireGL X3. VISUALIZE-FX cards
without the texture accelerator draw textures in software and are far too slow.
- Enough memory for a 1 GB Java heap
- Sound goes to
/dev/audio, if the machine has a sound device.
Everything else is in the package or is part of HP-UX 11.11.
What had to be fixed
-
Float arguments to libGL. LWJGL calls every GL function through a pointer. With GNU as, gcc
passes the float and double arguments of such calls in general registers only, but HP's libGL
reads them from floating-point registers. LWJGL and OpenAL are built with
-mno-gas, which makes
gcc pass them in both.
-
Texture LOD clamps. If a texture has
GL_TEXTURE_MIN_LOD or GL_TEXTURE_MAX_LOD set, even
to a value that changes nothing, the FireGL driver falls back to its software rasterizer, about
5000 times slower. Minecraft sets both on every texture, so the title screen took 30 seconds per
frame. The HP-UX LWJGL drops those two parameters.
-
Byte-swapped VBOs. The FireGL driver byte-swaps the contents of vertex buffer objects as
32-bit words, which turned grass and leaves purple. Display lists don't have the problem but run
at 9 FPS instead of 55, so
hpuxfix pre-swaps the vertex data instead.
-
Minecraft's own big-endian bugs. On big-endian machines, Minecraft 1.11.2 swaps sky and block
light (everything is lit like a torch, even at night) and writes vertex colors in the wrong order
(a red tint).
hpuxfix patches both as the classes load. The jar itself is not changed.
-
Sound. OpenAL Soft 1.17.2 got PA-RISC atomics and a
/dev/audio backend. The Ogg decoder
Minecraft uses writes little-endian samples, which hpuxfix swaps. HP's JVM, like Solaris', lets
Thread.interrupt() abort file reads, which froze the game on the first click; the launcher turns
that off with -XX:-UseVMInterruptibleIO.
-
Missing X extensions. HP-UX 11.11's X server has no RandR, XF86VidMode or Xcursor, so LWJGL
uses the current screen size as its only display mode.
The patches, build scripts and hpuxfix source are in src/ in the tarball. The LWJGL and OpenAL Soft
ports are also on GitHub, on the hpux branches of forks of
LWJGL 2 and
OpenAL Soft.
Licenses
- LWJGL: BSD 3-clause.
- OpenAL Soft: GNU LGPL 2. The changes are in
src/openal/, and the original source is
openal-soft-1.17.2.
- ASM (used by
hpuxfix): BSD 3-clause.
The license texts are in LICENSES/ in the tarball.
Categories: HP, UNIX, Software