Why is my minecraft server jar not opening?

Photo of author
Written By Jonny

As many fans are aware, Minecraft Caves & Cliffs update was recently released. This highly anticipated update contained a myriad of new features, including new mobs, blocks, items, and achievements.

Unlike previous versions, Minecraft server software now relies on the latest version of Java (Java 16) in order to function correctly. The most common cause of the JNI error while trying to set up a Minecraft server is due to the Java version installed on the machine being outdated.

Fortunately, its easy enough to fix this issue via simply updating Java. This will only take a few minutes at the most, and all the relevant steps will be carefully explained below.

Solution 1 – Update Java

So if you don’t have Java installed, that’s probably why you can’t open the Minecraft server. Even if you do, the server software might still need an updated Java version such as 1.7. 10.

Minecraft Server.jar Won’t load Files Or Stay Open! Here’s Why Easy fix 2021!!!

Setting up the Minecraft server

Some homes use AirPort Time Capsule as a wireless router instead of other brands. This section will teach you how to set one up without messing up your file server.

NOTE: Make sure you have your admin username and password.

  • Open System Preferences > Network.
  • Click the Advanced button and go under TCP/IP.
  • Where it says Configure IPv4, change that option to Using DHCP with manual address.
  • Change the IP address to 10.0.1.x, where x is a number between the last number of the two numbers under DHCP range (i.e. 10.0.1.2 to 10.0.1.254 would be anywhere between 2 and 254).
  • Now go to the Sharing section and make sure that Internet Sharing is on.
  • Now, open up AirPort Utility and edit your Time Capsule settings.
  • Go under Network and make sure the option Router Mode is set to DHCP and NAT. Now, click the + button under the Port Settings.
  • Type in the following:
    • Description: Minecraft Server (or whatever you want to call it)
    • Private IP Address: The address you chose for the 4th step.
  • Change everything with the word port in it to 25565.
  • Now, hit Save and update the Time Capsule.
  • Thats it! Youre now ready to configure your server.

    Linux comes in many different varieties called distributions (distros). Some of these distros are designed or better suited for running a server. If you are setting up a dedicated server it is recommended to use one of these distros.

    Linux, in general, is more welcoming to open source programs. So where applicable it is recommended you use open source programs, such as OpenJDK.

    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 Oracles 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.

    Run sudo eopkg install openjdk-8 to install OpenJDK.

    For OracleJDK refer to Solus Help Center

    Note: OpenJDK 11 is not in Solus repositories.

    Note: You might need to install the package “software-properties-common” by running sudo apt-get install software-properties-common and/or “python-software-properties” by running sudo apt-get install python-software-properties to use the apt-add-repository command.

    Due to 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:

  • sudo apt update; sudo apt-get install openjdk-8-jdk-headless below Minecraft Server 1.17
  • sudo apt update; sudo apt install openjdk-16-jdk-headless 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

    Note: Due to possible instability openSuse Tumbleweed is not recommended as a dedicated server.

    Just run the command from the terminal: sudo zypper in java-1_8_0-openjdk

    Note: Tested in openSuse Leap 15.1

    Both java 8 and 16 are in arch linuxs repostiory.

    Just run pacman -S jre-openjdk-headless, For the OpenJDK 16 JRE, Remove “-headless” for the full JRE if you want to run with GUI.

    Just run pacman -S jre8-openjdk-headless, 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 ArchWiki

    Check your distros documentation. It should have information on how to install OpenJDK.

    Alternatively, you can visit Javas 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.

    Getting docker (for Linux, Mac & Windows)

  • Download the by running docker pull sirplexus/minecraft-server-standalone:latest
  • Set up the container with port 25565 open, 1G ram assigned and named “MyServer”: docker container create --publish 25565:25565/tcp --name "MyServer" --env RAM=1G sirplexus/minecraft-server-standalone
  • Start the container: docker container start MyServer
  • A simple installer script (also installs Java)

    Note: this is a very early project, designed with offline installation in mind, and will be updated periodically to make it more user friendly.

    This part was tested with FreeBSD 10.0 amd64 and jre-7u65-linux-i586.tar.gz

    Due to performance and crash issue with OpenJDK and Minecraft server, we will install Oracle JRE made for linux.

    Before installing this JRE, you have to install the linux binary compatibility on FreeBSD, you can follow this documentation. Jave requires some information about the proc. You have to mount linprocfs, type:

    and add this line to /etc/fstab:

    The Oracle JRE has a dependency marked as forbidden and the installation will fail. Go to /usr/ports/textproc/linux-f10-expat2.0.1/ and in the Makefile remove the line which starts with FORBIDDEN=.

    Next you have to manually get the linux tarball due to licence issue (like `jre-7u65-linux-i586.tar.gz) from java official web site and copy the file to /usr/ports/distfiles. Then to install the JRE, go to /usr/ports/java/linux-sun-jre17/ and run make install distclean.

    Note: The previous version of this part, tested on FreeBSD 9.2 amd64, was explained like this: You may have to set JRE_UPDATE_VERSION variable in your Makefile to the actual number (e.g. 45 like in this example) and run make install NO_CHECKSUM=1.

    Try running java -version. You may end up with a message that it cannot find libjli.so. One way to fix it is to add your java paths to the search explicitly. Make a symlink:

    And in /compat/linux/etc/ld.so.conf.d/java.conf add:

    Run /compat/linux/sbin/ldconfig. Now java -version should work.

    FAQ

    How do you open a Minecraft server jar?

    Possible solutions are: Check that your network connection is enabled, and that no programs are blocking outgoing connections. Try disabling any existing firewall program, or changing its configuration options. Restart your modem/router.

    How do I fix my Minecraft jar file?

    Possible solutions are: Check that your network connection is enabled, and that no programs are blocking outgoing connections. Try disabling any existing firewall program, or changing its configuration options. Restart your modem/router.

    Why is my Minecraft server not running?

    Possible solutions are: Check that your network connection is enabled, and that no programs are blocking outgoing connections. Try disabling any existing firewall program, or changing its configuration options. Restart your modem/router.

    Does jar files work for Minecraft?

    Possible solutions are: Check that your network connection is enabled, and that no programs are blocking outgoing connections. Try disabling any existing firewall program, or changing its configuration options. Restart your modem/router.

     

    Leave a Comment