Difference between revisions of "Linux"

From StarMade Wiki
Line 10: Line 10:
 
Go to options, as shown.
 
Go to options, as shown.
 
[[File:JavabundleFindJavaBundleStep11.png|thumb]]
 
[[File:JavabundleFindJavaBundleStep11.png|thumb]]
Then either use your distribution's documentation to find the java path for OpenJDK 8 <br>
+
Then either use your distribution's documentation to find the java path for OpenJDK 8 <br> <br>
 
Fedora 35 path: /usr/lib/jvm/jre-1.8.0/bin <br>
 
Fedora 35 path: /usr/lib/jvm/jre-1.8.0/bin <br>
 
Ubuntu path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/ <br>
 
Ubuntu path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/ <br>
Arch path: /usr/lib/jvm/java-8-openjdk/bin <br>
+
Arch path: /usr/lib/jvm/java-8-openjdk/bin <br> <br>
 
Or instead use the browse option to find the Java path. The path should always end in /bin, as this directory contains the java binary that StarMade is looking for.
 
Or instead use the browse option to find the Java path. The path should always end in /bin, as this directory contains the java binary that StarMade is looking for.

Revision as of 23:03, 13 January 2022

StarMade is silently failing to launch on Linux

Often, the Linux StarMade Launcher will silently fail to launch for new users. The most common reason for this happening is that StarMade is attempting to use a very out of date Java 7 binary, which does not work on most modern Linux systems. Switching to a newer version of Java (OpenJDK 8, Oracle Java 8) will most likely fix this issue.

Switching to OpenJDK8

Install OpenJDK 8

CentOS / Rocky / Redhat / Fedora: sudo dnf install java-1.8.0-openjdk
Debian / Ubuntu: sudo apt install openjdk-8-jdk
Arch / Manjaro: sudo pacman -S jdk8-openjdk
Other distributions may vary, check your distributions docs if not sure

Telling StarMade to use your system's version of Java

Go to options, as shown.

JavabundleFindJavaBundleStep11.png

Then either use your distribution's documentation to find the java path for OpenJDK 8

Fedora 35 path: /usr/lib/jvm/jre-1.8.0/bin
Ubuntu path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/
Arch path: /usr/lib/jvm/java-8-openjdk/bin

Or instead use the browse option to find the Java path. The path should always end in /bin, as this directory contains the java binary that StarMade is looking for.