{"id":30048601,"url":"https://github.com/modcommunity/how-to-setup-a-minecraft-java-edition-server","last_synced_at":"2025-08-07T10:42:37.369Z","repository":{"id":307550388,"uuid":"1022434427","full_name":"modcommunity/how-to-setup-a-minecraft-java-edition-server","owner":"modcommunity","description":"A guide on how to setup a Minecraft Java Edition server!","archived":false,"fork":false,"pushed_at":"2025-07-31T19:27:38.000Z","size":229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T22:38:43.643Z","etag":null,"topics":["dedicated","edition","guide","how-to","java","minecraft","modding","mods","server","tutorial"],"latest_commit_sha":null,"homepage":"https://blog.moddingcommunity.com/how-set-up-a-minecraft-java-edition-server/","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modcommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T04:25:43.000Z","updated_at":"2025-07-31T20:04:24.000Z","dependencies_parsed_at":"2025-07-31T22:38:45.101Z","dependency_job_id":"fa4b4554-4ad6-4255-b19a-5a64b94030ad","html_url":"https://github.com/modcommunity/how-to-setup-a-minecraft-java-edition-server","commit_stats":null,"previous_names":["modcommunity/how-to-setup-a-minecraft-java-edition-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/modcommunity/how-to-setup-a-minecraft-java-edition-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modcommunity%2Fhow-to-setup-a-minecraft-java-edition-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modcommunity%2Fhow-to-setup-a-minecraft-java-edition-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modcommunity%2Fhow-to-setup-a-minecraft-java-edition-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modcommunity%2Fhow-to-setup-a-minecraft-java-edition-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modcommunity","download_url":"https://codeload.github.com/modcommunity/how-to-setup-a-minecraft-java-edition-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modcommunity%2Fhow-to-setup-a-minecraft-java-edition-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269244663,"owners_count":24384542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dedicated","edition","guide","how-to","java","minecraft","modding","mods","server","tutorial"],"created_at":"2025-08-07T10:42:32.991Z","updated_at":"2025-08-07T10:42:37.339Z","avatar_url":"https://github.com/modcommunity.png","language":null,"readme":"A full guide on how to set up a **Minecraft Java Edition server** on both **Windows** and **Linux (Debian 12)**! This includes installing Java, basic server configuration, and launching the server via startup scripts or using tools like `screen` on Linux.\n\n[**View Guide On TMC (Recommended Due To Better Formatting)**](https://blog.moddingcommunity.com/how-set-up-a-minecraft-java-edition-server/)\n\nWhether you're looking to host a small survival server for your friends or create a public modded world, this guide will walk you through what you need to start out!\n\n## Table Of Contents\n* [Requirements](#requirements)\n* [Download Minecraft Server JAR](#download-minecraft-server-jar)\n* [Setting Up On Windows](#setting-up-on-windows)\n    * [Install Java](#install-java-on-windows)\n    * [Create A Startup Script](#create-a-startup-script-windows)\n* [Setting Up On Debian Linux (Debian 12)](#setting-up-on-linux-debian-12)\n    * [Install Java](#install-java-on-linux)\n    * [Create A Startup Script](#create-a-startup-script-linux)\n    * [Using `screen`](#using-screen-on-linux)\n* [Basic Configuration](#basic-configuration)\n* [Conclusion](#conclusion)\n* [See Also](#see-also)\n\n## Requirements\nBefore setting up your server, here's what you'll need:\n\n* A PC with **4GB or more RAM**\n* A [Minecraft Java Edition](https://www.minecraft.net/en-us/store/minecraft-java-edition) account\n* [Java 17](https://adoptium.net/) or newer (depending on Minecraft version)\n* If you want other players to be able to join the server, you will need to ensure you have a stable Internet connection and TCP port `25565` port forwarded on your network. [Here's](https://portforward.com/minecraft/) a guide on how to port forward!\n\nAdditionally here's a list of nice haves.\n\n* A basic understanding of how to run scripts and commands (Batch for Windows, Bash/Shell for Linux).\n* Familiarity with your terminal or command prompt.\n\n## Download Minecraft Server JAR\nYou'll need the official Minecraft Server `.jar` file:\n\n* Go to: [https://minecraft.net/en-us/download/server](https://minecraft.net/en-us/download/server)\n* Download the latest `.jar` file and place it in a new folder. We recommend something like:\n\n```\nC:\\MinecraftServer\n```\nor on Linux:\n```\n~/minecraft/server\n```\n\n## Setting Up On Windows\n\n### Install Java On Windows\n1. Download Java 17+ from [Adoptium](https://adoptium.net/temurin/releases/)\n2. Run the installer\n3. (Optional) Add Java to your system `PATH`:\n    ```bat\n    setx PATH \"%PATH%;C:\\Program Files\\Eclipse Adoptium\\jdk-17\\bin\"\n    ```\n\n### Create A Startup Script (Windows)\n\nInside the folder where your `server.jar` is located:\n\n1. Right-click → New → Text Document  \n2. Rename it to `start.bat`  \n3. Edit it and paste the following:\n\n    ```bat\n    @echo off\n    java -Xmx4G -Xms2G -jar server.jar nogui\n    pause\n    ```\n\n4. Save the file and double-click `start.bat` to launch your server.\n\nIf it's your first run, a `eula.txt` file will appear. Open it and change:\n```text\neula=false\n```\nto:\n```text\neula=true\n```\n\nThen re-run `start.bat`.\n\n## Setting Up On Linux (Debian 12)\n\n### Install Java On Linux\nOpen a terminal and type:\n\n```bash\nsudo apt update\nsudo apt install -y openjdk-17-jdk\n```\n\nVerify it installed:\n\n```bash\njava -version\n```\n\n### Create A Startup Script (Linux)\n\nCreate a new folder and move into it:\n\n```bash\nmkdir -p ~/minecraft/server\ncd ~/minecraft/server\n```\n\nMove your `server.jar` here, then create `start.sh`:\n\n```bash\nnano start.sh\n```\n\nPaste this:\n\n```bash\n#!/bin/bash\ncd \"$(dirname \"$0\")\"\njava -Xmx4G -Xms2G -jar server.jar nogui\n```\n\nSave and make it executable:\n\n```bash\nchmod +x start.sh\n```\n\nRun it with:\n\n```bash\n./start.sh\n```\n\nJust like Windows, the first time you run it you'll need to accept the EULA:\n\n```bash\nnano eula.txt\n```\nChange `eula=false` to `eula=true`, then save and re-run.\n\n### Using `screen` On Linux\n\nIf you want your server to keep running after you close the terminal:\n\n1. Install screen:\n```bash\nsudo apt install screen\n```\n\n2. Start a new session:\n```bash\nscreen -S minecraft\n```\n\n3. Run your server:\n```bash\n./start.sh\n```\n\n4. Detach from screen:  \nPress `CTRL + A`, then `D`\n\n5. Reattach later:\n```bash\nscreen -r minecraft\n```\n\nThis is a great way to keep your server online 24/7 even when you're not SSH'd in.\n\n## Basic Configuration\n\nAfter running your server once, it will generate a `server.properties` file.\n\nTo edit the configuration:\n```bash\nnano server.properties  # Linux\nnotepad server.properties  # Windows\n```\n\nSome options you may want to change:\n\n```properties\nmotd=Welcome to My Server!\nmax-players=10\ndifficulty=normal\npvp=true\nenable-command-block=false\nallow-nether=true\nonline-mode=true\n```\n\nYou can whitelist users by adding them via the server console or editing `whitelist.json`:\n\n```bash\nwhitelist on\nwhitelist add \u003cusername\u003e\n```\n\n## Conclusion\nYou now have a basic, but functioning **Minecraft Java Edition server** running on either Windows or Linux! Whether you're hosting a private world for friends or planning to go public, you should be off to a great start.\n\n## See Also\n* [Minecraft Java Server Download](https://www.minecraft.net/en-us/download/server)\n* [OpenJDK Downloads (Linux)](https://openjdk.org/)\n* [Adoptium Java Downloads (Windows)](https://adoptium.net/)\n* [How To Port Forward Minecraft](https://portforward.com/minecraft/)\n* [Screen Manual](https://linux.die.net/man/1/screen)\n\nThis guide is a *work-in-progress* and may be updated over time. If you have suggestions or improvements, we'd love your feedback!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodcommunity%2Fhow-to-setup-a-minecraft-java-edition-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodcommunity%2Fhow-to-setup-a-minecraft-java-edition-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodcommunity%2Fhow-to-setup-a-minecraft-java-edition-server/lists"}