0

Hello I need help with my modded minecraft server Modpack the problem i get is unable to access jarfile server.jar

@echo off
java -jar server.jar -Xmx8192M nogui 
pause

This is my .bat file where i need to run the server with but it gives the error Unable to access jarfile server.jar
(the server.jar file is my server)

My Folder screenshot

  • 2
    Please edit your question and include the full text of the error message (preferred as text, not as screen-shot). – Robert Sep 03 '21 at 18:17
  • hello robert i have edited the post with the exact error message – Egirlneedhelppls Sep 03 '21 at 18:24
  • Does this answer your question? [What causes "Unable to access jarfile" error?](https://stackoverflow.com/questions/11943948/what-causes-unable-to-access-jarfile-error) – Pieter12345 Sep 03 '21 at 18:51

1 Answers1

0

Is the jar file in the same directory as the bat file? Also, is the name of the file that same as the one you mentioned in your script? The best course of action would be to re-write the bat

CiY3
  • 134
  • 10