Editing
Tutorials/Setting up a server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Installing Java === For most distributions, it is recommended to install OpenJDK 16 (for 1.17+) or OpenJDK 8 (for below 1.17) from the official repositories. For Oracle Java refer to Oracle's [https://www.java.com/en/download/linux_manual.jsp Download Page]. ''Note: While not affecting Minecraft server, JavaFX or other proprietary aspects of Java will need to be installed separately.'' Specific instructions are included for each distro below, but not all have been updated to 1.17. If it only says to install OpenJDK 8, that means that it has not yet been updated to 1.17. ==== Solus ==== Run <code>sudo eopkg install openjdk-8</code> to install OpenJDK. For OracleJDK refer to [https://getsol.us/articles/software/java/en/#jre Solus Help Center] ''Note: OpenJDK 11 is not in Solus' repositories.'' ==== Debian, Ubuntu, Raspbian ==== ''Note: You might need to install the package "software-properties-common" by running <code>sudo apt-get install software-properties-common</code> and/or "python-software-properties" by running <code>sudo apt-get install python-software-properties</code> to use the <code>apt-add-repository</code> command.'' Due to [http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html licensing issues], the repository frequently used to install Oracle Java has been discontinued. It is now recommended that you install OpenJDK 8 or above. OpenJDK can be installed with one command: * <code>sudo apt update; sudo apt-get install openjdk-8-jdk-headless</code> below ''Minecraft'' Server 1.17 * <code>sudo apt update; sudo apt install openjdk-16-jdk-headless</code> at or above ''Minecraft'' Server 1.17 Removing the 'headless' part of the command will install all components of Java. ''Note: <1.17 tested in Ubuntu 18.04, 1.17 tested in Ubuntu Server 20.04.2 LTS'' ==== openSUSE ==== ''Note: Due to possible instability openSuse Tumbleweed is not recommended as a dedicated server.'' Just run the command from the terminal: <code>sudo zypper in java-1_8_0-openjdk </code> Java should be installed. ''Note: Tested in openSuse Leap 15.1'' ==== Arch Linux ==== Both java 8 and 16 are in arch linux's repostiory. Just run <code>pacman -S jre-openjdk-headless</code>, For the OpenJDK 16 JRE, Remove "-headless" for the full JRE if you want to run with GUI. Just run <code>pacman -S jre8-openjdk-headless</code>, For the OpenJDK 8 JRE, Remove "-headless" for the full JRE if you want to run with GUI. If you encounter issues it is recommended that you refer to the [https://wiki.archlinux.org/index.php/java ArchWiki] ==== Gentoo ==== Run <code>emerge --ask virtual/jdk</code> [https://wiki.gentoo.org/wiki/Java#Installing_a_virtual_machine Gentoo Wiki] ==== Other distros ==== Check your distro's documentation. It should have information on how to install OpenJDK. Alternatively, you can [https://www.java.com/en/download/linux_manual.jsp visit Java's website directly] to download the Java package for Linux. Most distros work with this (either 32 or 64-bit). Instructions for the installation of those different packages are given on the site. If during installation, it asks for a password, enter your password. If you get asked "Is this OK [Y/N]" Enter Y and press enter if required. Java should now be installed. [[File:RunMinecraftServer.png]]
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information