Startup Errors
"Error: Could not find or load main class"
Cause: Java can't find the server JAR file.
Solution:
- Make sure the JAR file is in the same directory as your start script
- Check the JAR filename matches exactly what's in your start script
- Remove spaces from folder names in the path
# Correct
java -jar server.jar nogui
# Wrong - file doesn't exist
java -jar Server.jar nogui
"UnsupportedClassVersionError" or "class file version 65.0"
Cause: Wrong Java version. Minecraft requires specific Java versions:
| Minecraft Version | Required Java |
|---|---|
| 1.20.5+ | Java 21 |
| 1.18 - 1.20.4 | Java 17 |
| 1.17 | Java 16 |
| 1.12 - 1.16.5 | Java 8-16 |
Solution:
- Install the correct Java version from Adoptium
- Update your start script to use the new Java
# Point to specific Java installation if needed
/path/to/java21/bin/java -jar server.jar nogui
"Failed to bind to port" or "Address already in use"
Cause: Another process is using port 25565.
Solution:
- Check for other Minecraft servers running
- Close any conflicting applications
- Use a different port:
# In server.properties
server-port=25566
Need a step-by-step walkthrough? See Fix Failed to Bind to Port.
"EULA not accepted"
Cause: You haven't agreed to the Minecraft EULA.
Solution:
Open eula.txt and change eula=false to eula=true.
Info
By setting eula=true, you agree to Mojang's End User License Agreement.
Connection Errors
"Can't connect to server" or "Connection refused"
Common causes and solutions:
-
Wrong IP address
- Use
localhostfor same computer - Use your local IP (192.168.x.x) for LAN
- Use your public IP for external connections
- Use
-
Firewall blocking
# Windows - allow through firewall netsh advfirewall firewall add rule name="Minecraft" dir=in action=allow protocol=TCP localport=25565 -
Port not forwarded
- Access your router admin panel
- Forward port 25565 (TCP) to your server's local IP
"io.netty.channel.AbstractChannel$AnnotatedConnectException"
Cause: Network connection failed.
Solutions:
- Check the server is actually running
- Verify the IP address and port are correct
- Check for firewall/antivirus blocking
- Try restarting your router
If you see "Connection timed out", follow Fix Connection Timed Out.
"Outdated server" or "Outdated client"
Cause: Minecraft version mismatch between client and server.
Solution:
- Update your client to match the server version, OR
- Update your server to match your client version
Crashes and Errors
"OutOfMemoryError: Java heap space"
Cause: Not enough RAM allocated.
Solution: Increase memory in your start script:
# Increase from 4G to 6G
java -Xms6G -Xmx6G -jar server.jar nogui
Warning
Don't allocate more RAM than your system has available. Leave at least 2GB for the operating system.
"Ticking entity" crash
Cause: A specific entity is causing the server to crash.
Solutions:
- Check the crash report for coordinates
- Use MCEdit or NBTExplorer to remove the entity
- Restore from backup if available
"Chunk loading errors" or corrupted world
Cause: World files are damaged.
Solutions:
- Restore from backup (best option)
- Use region fixer tools
- Delete the corrupted region files (causes data loss)
Plugin conflicts and errors
Cause: Incompatible or buggy plugins.
Solution:
- Check
logs/latest.logfor error messages - Remove plugins one by one to identify the culprit
- Update plugins to latest versions
- Check plugin compatibility with your server version
Performance Issues
Low TPS (below 20)
Cause: Server is lagging and can't keep up.
Solutions:
- Use Spark profiler to identify issues
- Reduce view-distance in server.properties
- Remove performance-heavy plugins
- Pre-generate your world
See our Optimization Guide for detailed solutions.
High memory usage
Cause: Memory leak or too many loaded chunks.
Solutions:
- Set a world border to limit exploration
- Use Paper's chunk unloading features
- Check for plugin memory leaks with Spark
- Restart server on a schedule
Tick lag spikes
Cause: Something causing periodic freezes.
Common culprits:
- Auto-save (every 5 minutes by default)
- Backup plugins
- Large redstone contraptions
- Entity processing
Error Logs
Where to find logs
| File | Contents |
|---|---|
logs/latest.log | Current session log |
logs/YYYY-MM-DD-#.log.gz | Previous session logs |
crash-reports/ | Crash report files |
Reading crash reports
Key sections to check:
- Description - What happened
- Stack trace - The technical error
- System Details - Java version, OS, etc.
- Mods/Plugins - List of loaded additions
Getting Help
When asking for help on forums or Discord, always include:
- Your Minecraft version
- Your server software (Paper, Fabric, etc.)
- The relevant error from logs
- Steps to reproduce the issue
Prevention Tips
- Keep backups - Backup world and config files regularly
- Test changes - Test new plugins on a development server first
- Update carefully - Read changelogs before updating
- Monitor resources - Use monitoring tools to catch issues early
- Use stable software - Prefer stable releases over development builds