Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk11 min

How to Install Java and Run a Minecraft Server on a Windows VPS

Install Java on a Windows VPS, configure the official Minecraft: Java Edition server JAR, accept the EULA, open the correct firewall ports, and connect players safely.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run a Minecraft: Java Edition server on a Windows VPS, install a compatible Java runtime, download the official versioned server JAR, launch it once to create the configuration files, accept the EULA, open the server port in both your VPS firewall and Windows Defender Firewall, and start the server again. Friends connect with the VPS public IP address or DNS name, using the configured port.

The exact Minecraft JAR filename and the Java patch required can change between releases. Use the current official Minecraft download page for the JAR and verify its compatibility notes before copying a command.

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you will have when the setup is complete

A correctly configured deployment has five separate pieces. Each one must work; a failure in any layer can make the server appear offline.

Layer What must be true Where you check it
Windows VPS You have administrator-capable access, current updates, and enough CPU, memory, and storage for your player and mod workload. VPS control panel and Windows Settings
Java A compatible JRE/JDK is installed and the java command works in a new terminal. PowerShell or Command Prompt
Server JAR The official Java Edition server JAR is in a dedicated folder. File Explorer and the server console
Server configuration eula.txt contains eula=true, and server.properties contains the intended gameplay and port settings. Plain-text files in the server folder
Network path The same TCP port is permitted by the VPS provider’s firewall and Windows Defender Firewall. Provider security group and Windows firewall rules

This procedure is for Minecraft: Java Edition. A Bedrock client cannot join a Java server simply by using the same IP address, and clients must use a release compatible with the server.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

Prepare the Windows VPS

Use an administrator-capable account

Sign in through the VPS provider’s remote desktop or console with an account that can install software and create firewall rules. Apply current Windows updates before installing Java. Reboot if Windows requests it, then reconnect and confirm that the public IP address or DNS name shown by the provider is still correct.

Confirm that the endpoint can accept inbound traffic

Find out whether the provider places a security group, network ACL, or external firewall in front of the VPS. You need permission to add an inbound rule for the Minecraft port. Some providers supply a public IPv4 address; others also offer IPv6. Record the address players will use and check whether it can change after a stop, rebuild, or plan change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose resources for the actual workload

Minecraft performance depends on the world, simulation and view distances, number of simultaneous players, redstone activity, plugins, and mods. The official setup guidance does not publish a universal RAM-per-player rule, so do not treat a single memory number as a guarantee. Watch CPU, memory, disk space, and tick performance after the server is running and resize when the workload demands it.

Install a compatible Java runtime

Microsoft’s Windows Java guidance recommends Microsoft Build of OpenJDK or Eclipse Temurin. OpenJDK 21 is the documented package-manager example in the current guidance, but the Minecraft release you choose may require a different Java major version. Check the server release notes and official download page first.

  1. Open a new PowerShell window as an administrator.
  2. Install the documented OpenJDK package:
    winget install Microsoft.OpenJDK.21
  3. Close PowerShell and open a new PowerShell or Command Prompt window. A new session ensures that Windows reloads the updated environment variables.
  4. Verify that Java is callable:
    java -version

The version command should print a Java runtime version rather than an error. Keep the output available if you need to compare it with the Minecraft server’s compatibility requirement.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

When to set JAVA_HOME

The server can normally launch with the java command alone. Some administration tools and scripts also expect JAVA_HOME. Microsoft documents setting JAVA_HOME to the JDK directory and adding %JAVA_HOME%bin to the system Path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Windows search and choose View advanced system settings.
  2. Select Environment Variables.
  3. Under System variables, create or edit JAVA_HOME so it points to the installed JDK directory, not to the bin subfolder.
  4. Edit the system Path and add %JAVA_HOME%bin.
  5. Open a new terminal and run java -version again.

If Java was installed with a package manager but the command is not found, first open a new terminal. If that does not fix it, inspect the system Path and JAVA_HOME values for a missing or incorrect JDK directory.

Download and organize the official server JAR

  1. Open Minecraft’s official Java server download page and select the release you intend to run. The page states that the setup is for Java Edition and that a compatible Java Runtime Environment is required to launch the .jar file.
  2. Create a dedicated directory, for example C:MinecraftServer.
  3. Download the versioned server JAR into that directory. Keep the filename exactly as published; do not rename it to an old tutorial’s filename.
  4. Keep backups and future versions in separate folders or use a clearly documented upgrade procedure. Mixing multiple JARs in one folder makes it easy to start the wrong release.

The filename in the command below is intentionally variable. Replace <exact-server-jar-name>.jar with the complete filename you actually downloaded.

Run the first launch and accept the EULA

The first launch creates the files needed for configuration and then stops because the EULA has not been accepted.

  1. Open PowerShell or Command Prompt.
  2. Change to the server directory:
    cd C:MinecraftServer
  3. Start the JAR without a graphical window:
    java -jar <exact-server-jar-name>.jar nogui
  4. Wait for the process to stop and report that the EULA must be accepted. The run should create eula.txt and usually create server.properties as well.
  5. Open eula.txt in a text editor. Review the linked terms, change the single setting from eula=false to eula=true, and save the file.

Do not set the value to true until you have reviewed and agreed to the EULA. Editing a different copy of the file, or saving it with an extra extension such as .txt.txt, will not satisfy the server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Configure server.properties before inviting players

server.properties is a plain-text file. Stop the server before editing it, save the changes, and restart so the server reads the new values. Property names and available options can vary by Minecraft release, so retain the keys generated by your downloaded JAR.

Property What it controls Practical guidance
server-port The TCP port used for player connections. Use the port you will open in both firewalls. The documented default for Java connections is 25565 in the official setup examples.
query.port The port used by the query service when that service is enabled. Review it when you use query tools; it is not a substitute for opening the player connection port.
max-players The maximum number of simultaneous players. Set a realistic limit for your VPS. More players increase CPU and memory pressure; there is no official universal RAM figure.
gamemode The default game mode for players. Choose the mode appropriate to your world and community.
difficulty The world’s difficulty. Set it before inviting players if you want a predictable survival experience.
motd The message displayed in the multiplayer server list. Keep it short enough to be readable in the client.
level-seed The seed used when generating a new world. Set it before the first world is generated if a particular seed is required.
server-ip The local address to which the server binds. Leave it blank unless you have a specific, documented binding requirement. Entering the wrong address can prevent startup or connections.

When a setting is absent or has a release-specific name, use the properties file generated by your server version rather than copying a list from an older tutorial. Keep a backup of the file before making large changes.

Open the network path on both firewalls

Provider firewall or security group

In the VPS provider’s control panel, add an inbound rule for the TCP value used by server-port. If you leave the server on the documented default, that is TCP 25565. Restrict administrative ports such as Remote Desktop to trusted source addresses where the provider supports it. Save or apply the rule and check whether the provider requires a separate IPv6 rule.

Windows Defender Firewall

Keep Windows Firewall enabled. Microsoft warns that turning it off makes the device more vulnerable; create a narrow exception instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Press Windows, search for Windows Defender Firewall with Advanced Security, and open it.
  2. Select Inbound Rules in the left pane.
  3. Choose New Rule in the right pane.
  4. Select Port, choose TCP, and enter the exact local port configured in server-port.
  5. Select Allow the connection, then apply the rule only to the network profiles you need.
  6. Give the rule a descriptive name such as Minecraft Java TCP 25565 and finish the wizard.

If you change server-port later, change the provider rule and Windows rule together. Opening 25565 while the server listens on another port does not make the server reachable.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Start the server and connect

  1. Return to the server directory in a new terminal:
    cd C:MinecraftServer
  2. Launch the same JAR again:
    java -jar <exact-server-jar-name>.jar nogui
  3. Wait until the console reports that the server has finished loading and is ready for commands. Do not close the terminal window; closing it terminates the process unless you are using a separate service or session manager.
  4. From a Minecraft: Java Edition client, open Multiplayer, choose Add Server, and enter the VPS public IP address or DNS name.
  5. If the port is not the default, append it in the form hostname:port. You may also include :25565 when an explicit default port is useful for troubleshooting.

The client and server must use compatible releases, and Java players must join a Java server. If the server is visible locally but not from another network, test the public address rather than a private VPS address.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Operate the server safely

Stop it cleanly

Use the server console’s stop command before rebooting Windows or changing files. A clean stop gives the server an opportunity to save the world. Avoid killing the terminal process or powering off the VPS while players are online.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Back up the world and configuration

Back up the world directory, server.properties, eula.txt, and any additional configuration or plugin directories. Store at least one copy outside the VPS. Provider snapshots are useful, but confirm how often they run, how long they are retained, and whether they can be restored to a different VPS.

Plan updates deliberately

Before replacing the JAR, stop the server and make a dated backup. Read the target release’s Java requirement, copy the new JAR into a controlled location, and test it with the existing world only after you have a restorable backup. Do not assume that a Java update, Minecraft update, plugin, or mod is backward-compatible.

What to compare when choosing a Windows VPS

The cheapest plan is not automatically the best host for a multiplayer world. Compare the operational features that affect availability and recovery.

Criterion Questions to ask Why it matters
Monthly cost and Windows licensing Is the Windows license included, and is the quoted amount recurring? A low headline price can change when licensing or renewal charges are added.
CPU performance What single-thread performance and sustained CPU allocation are provided? Tick processing can be sensitive to fast individual cores, especially with busy worlds.
RAM and storage Can memory and disk be upgraded without rebuilding, and is storage SSD-based? World size, player count, logs, backups, and mods all consume resources.
Public networking Do you receive public IPv4 or IPv6, and can you create inbound firewall rules? Players need a reachable endpoint and a way to expose only the required port.
Backups and snapshots How frequently are snapshots made, how long are they retained, and how are restores performed? A backup is valuable only if it can be restored before data is lost.
DDoS and network policy What traffic protections and fair-use limits apply? Unexpected traffic can affect latency or trigger suspension under some policies.
Location and latency Where is the VPS located relative to the players? Shorter network paths generally produce a more responsive experience.
Remote console and support Can you recover access if Remote Desktop fails? An out-of-band console is useful for firewall mistakes and boot problems.
Upgrade and cancellation terms Can you resize, and can you export your world before cancelling? Migration flexibility reduces lock-in and makes growth less disruptive.

Troubleshooting common failures

“java is not recognized”

Open a new PowerShell or Command Prompt window after installation and run java -version. If it still fails, check that the Java installation exists, that JAVA_HOME points to the JDK directory, and that %JAVA_HOME%bin is present in the system Path. Multiple Java installations can also leave an older or broken path entry ahead of the current one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“You need to agree to the EULA”

Stop the process, open the eula.txt created in the same folder as the JAR, review the terms, set eula=true, and save it as a plain-text file. Then rerun the command from that exact folder. If the message persists, confirm that the editor did not add a second filename extension and that you are not editing a duplicate server directory.

The server starts, but friends cannot join

  • Confirm the server console is ready and that server-port matches the port you are testing.
  • Check the provider security group or external firewall.
  • Check the Windows Defender Firewall inbound rule and its network profile.
  • Verify the public IP address or DNS name, rather than a private address visible only inside the VPS network.
  • If you changed the port, have players include :port in the address.
  • Check that the client is Minecraft: Java Edition and is on a compatible release.

The server works on the VPS but not from the internet

A local test can succeed even when the public path is blocked. Test from a different network, such as a player’s home connection, and inspect both firewall layers. Do not disable Windows Firewall as a shortcut; create or correct the specific inbound rule.

The server stops, lags, or becomes unresponsive

Inspect Windows CPU, memory, and disk usage while the problem is occurring. Reduce view distance or the configured player limit, remove unnecessary workload, and compare the load with the VPS plan’s allocation. If the world uses mods or plugins, check their release compatibility and logs. Because the official guidance publishes no universal RAM number, resize based on observed workload rather than an invented player-to-memory formula.

Players see a version or edition error

Confirm that the server JAR and client are both Java Edition and that their releases are compatible. Updating only the client, or trying to connect from Bedrock Edition, does not make the combinations compatible. Match the release before investigating network settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Final pre-launch checklist

  • java -version succeeds in a new terminal.
  • The official, versioned Java server JAR is in the intended folder.
  • The first launch created eula.txt; you reviewed the EULA and set eula=true.
  • server.properties contains the intended port and gameplay settings, with server-ip blank unless a deliberate binding is required.
  • The configured TCP port is allowed by both the provider firewall and Windows Defender Firewall.
  • The server console reaches its ready state before anyone connects.
  • Players have the public IP or DNS name, the correct port, Java Edition, and a compatible client release.
  • A backup or snapshot exists before the first major world or software update.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.