I have created a custom modpack along with a server also. When I launch the "Minecraft Server.jar" file everything works fine, and I'm also able to connect on my client. However, I need to increase the amount of allocated ram.
I created a run.bat file, with the following text. Java -Xms1G -Xmx2G -jar Minecraft Server.jar -o true pause
I then get the error "Error: Unable to access jarfile Minecraft" after launching the cmd.
I'm the latest version of 64bit java on a 64 bit system, so that is not the problem.