Guide · Troubleshooting

Fixing "Unable to access jarfile" and "java is not recognized"

Both errors come from the start command rather than Minecraft. Either the command cannot find the server jar, or it cannot find Java.

Unable to access jarfile

The file name in your start command does not match the jar in the folder. If the command says server.jar, the file must be named exactly server.jar. Downloads are often named like paper-26.1-50.jar; rename the file or update the command.

  • Windows hides extensions by default, so server.jar may really be server.jar.jar
  • Run the script from the same folder as the jar, or use full paths
  • Names with spaces need quotes around them

"java" is not recognized

Java is not installed, or not on the PATH. Install a current Java build such as Eclipse Temurin in the version your Minecraft release needs, ticking the option to add it to the PATH. Open a new command prompt and run java -version to check.

If several Java versions are installed, use the full path in your script, for example "C:\Program Files\Eclipse Adoptium\jdk-25\bin\java.exe", so the right one is always used.

On a hosted server

The panel builds the start command. If the jar is missing, check the startup settings for the jar file name, or reinstall the server software from the panel. Java is selected from the startup image rather than installed by you.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

What should a basic start command look like?
java -Xms4G -Xmx4G -jar server.jar --nogui, run from the folder that contains server.jar. Add Aikar's flags for better garbage collection.
Why does my start.bat window close instantly?
Add pause on a new line at the end of the script so the window stays open and shows the error.
Do I need the JDK or JRE?
Either works for running a server. Many current Java distributions only ship the JDK, which is fine.