Zulu Platform X64 Architecture Project Zomboid Direct
# Add Azul repo
wget -qO - https://repos.azul.com/azul-repo.key | sudo apt-key add -
sudo add-apt-repository "deb https://repos.azul.com/zulu/deb stable main"
sudo apt update
sudo apt install zulu17-jdk
The most common issue regarding this topic is the following error during startup:
Error: Unable to locate a Java Runtime that supports the current platform... or java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
This happens if there is a mismatch between the server architecture (x64) and the Java libraries being called, or if the LD_LIBRARY_PATH isn't pointing to the correct x64 modules.
The Fix: Ensure you are forcing the server to use the x64 environment variables. In your startup script or Docker configuration, ensure the following is set: zulu platform x64 architecture project zomboid
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
If you are using a Docker container, ensure your architecture flag is set correctly in your Dockerfile or run command:
--platform linux/amd64
If you are running a server on an x64 (AMD/Intel) machine, ensure you are installing the Zulu JDK 21 (or 17, depending on your specific build preference, though newer builds trend toward 21).
Example Installation (Debian/Ubuntu):
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998371215AC182
sudo echo "deb http://repos.azulsystems.com/ubuntu stable main" | sudo tee /etc/apt/sources.list.d/zulu.list
sudo apt-get update
sudo apt-get install zulu-21
Most games bundle their own specific runtime to ensure stability and performance. The Indie Stone chose Zulu for several strategic reasons:
Switching Project Zomboid from a 32-bit JVM to a 64-bit Zulu platform is like swapping a bicycle engine for a V6.
Add these JVM flags for Zulu x64:
-XX:G1HeapRegionSize=16M \
-XX:InitiatingHeapOccupancyPercent=30 \
-XX:G1ReservePercent=15 \
-XX:+UseStringDeduplication
These reduce memory fragmentation and improve mod asset caching.
A 32-bit application can only address ~1.2GB to 1.4GB of RAM effectively. Project Zomboid, with mods like Brita’s Weapon Pack or Raven Creek, easily requires 4GB+. When the game hits the 32-bit ceiling, it triggers the "Garbage Collector" (GC) constantly, causing massive stuttering, or crashes with the infamous java.lang.OutOfMemoryError.