Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

"Unable to access jarfile minecraft_server.jar" Error


  • Please log in to reply
16 replies to this topic

#1

Eum3
    Eum3

    Zombie Killer

  • Members
  • 238 posts

Posted 09 January 2011 - 09:57 PM

Alright, my port is open and I've downloaded Minecraft SMP.

The Minecraft server log tells me that all I need to do is type in "java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui" to start up my server, but when I do this in the command prompt (with java replaced with the specific pathway to java.exe) it gives me the error message "Unable to access jarfile minecraft_server.jar"

What can I do? I've already successfully set up a Minecraft Classic Server, but I can't figure out what's wrong this time.

Register or log in to remove.

#2

FakeTruth
  • Location: N to the L

Posted 09 January 2011 - 10:30 PM

Try this, while your working directory is the same directory as minecraft_server.jar is in
java -Xmx1024M -Xms1024M -jar ./minecraft_server.jar nogui

It could also be due to file permissions, try 'chmod'ing it to the right permissions (I don't know which)

#3

Eum3
    Eum3

    Zombie Killer

  • Members
  • 238 posts

Posted 09 January 2011 - 10:42 PM

Thanks for the advice, but I don't quite know what you mean. I'm rather inexperienced at this sort of thing. As far as I can tell, minecraft_server.jar resides only in "Downloads" under "Users." Can the command prompt not find it there?

#4

Desolationrift

Posted 28 May 2011 - 11:34 PM

I got the same error then I moved the Minecraft_Server.jar file to my User folder and got this error message.

Quote

java -Xmx1024M -Xms1024M -jar ./minecraft_server.jar nogui
Fred-Forsmans-MacBook-Pro:~ Buckweiser$ java -Xmx1024M -Xms1024M -jar ./minecraft_server.jar nogui
148 recipes
16 achievements
2011-05-28 16:30:47 [INFO] Starting minecraft server version Beta 1.6.5
2011-05-28 16:30:47 [INFO] Loading properties
2011-05-28 16:30:47 [WARNING] server.properties does not exist
2011-05-28 16:30:47 [INFO] Generating new properties file
2011-05-28 16:30:47 [INFO] Starting Minecraft server on *:25565
2011-05-28 16:30:47 [WARNING] **** FAILED TO BIND TO PORT!
2011-05-28 16:30:47 [WARNING] The exception was: java.net.BindException: Address already in use
2011-05-28 16:30:47 [WARNING] Perhaps a server is already running on that port?

Then I moved it to my desktop and opened it as a jar file. It created the server properties and server log files. But did not work. Then I changed the IP in my server properties, it didn't work. Then I typed in the launch server command into terminal:

Quote

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Then I got the same error I started with:

Quote

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Fred-Forsmans-MacBook-Pro:~ Buckweiser$ java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Unable to access jarfile minecraft_server.jar
God this is annoying someone please help. This is for version 1.6!

#5

MikeA
    MikeA

    Glowstone Miner

  • Curse Premium
  • Curse Premium
  • 3184 posts
  • Location: United States
  • Minecraft: Mikeambrose3

Posted 29 May 2011 - 12:57 AM

Well since you moved the .jar file to your desktop, you will have to run the command on the desktop directory.
In the terminal type "cd /user/xxxx/desktop/" or whatever Mac uses... then use the command.

Posted Image

Skype: Mikeambrose3


#6

iamadpond

Posted 23 October 2011 - 10:42 AM

Thanks mike it worked for me

#7

FEARDAJEW

Posted 24 June 2013 - 03:25 AM

I'm having a similar problem.
Im using Windows 8 btw...it sucks

anyway, I double click start.bat
(I followed the instructions on thw wiki page that's on minecraft.net)
when I click it, it tells me it cannot access jarfile minecraft_server.jar.
Im pretty sure the system path is working, I mean, it does lead to java.exe.
I followed the section of the wiki called
Start the Minecraft server (.jar version)
and when that did not work I followed
Starting the jar version without altering your system path
and idk whats wrong. please help, try to explain with less technical terms. :(

#8

777eza
    777eza

    Tree Puncher

  • Members
  • 11 posts

Posted 06 September 2013 - 05:11 PM

I had this problem but here's what I did to fix it I created a bat file with

Quote

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
right, but when I ran it but it didn't work so then it hit me I'm not running minecraft_server.jar I'm running minecraft_server.1.6.2 jar so you can either rename the jar to just minecraft_server.jar or edit the code to

Quote

java -Xmx1024M -Xms1024M -jar minecraft_server.1.6.2.jar nogui
this worked for me hopefully this will work for you.

#9

jp9654
    jp9654

    Tree Puncher

  • Members
  • 18 posts
  • Location: Right Behind You....

Posted 28 October 2013 - 03:23 PM

View PostDesolationrift, on 28 May 2011 - 11:34 PM, said:

I got the same error then I moved the Minecraft_Server.jar file to my User folder and got this error message.


Then I moved it to my desktop and opened it as a jar file. It created the server properties and server log files. But did not work. Then I changed the IP in my server properties, it didn't work. Then I typed in the launch server command into terminal:


Then I got the same error I started with:

Unable to access jarfile minecraft_server.jar
God this is annoying someone please help. This is for version 1.6!
itsssss working.
thatssss becaussse a sssserver isss being usssed by the rooter youre ussssing (check your other server stats and remove the ip address if you have more than one server)

#10

3434boys
    3434boys

    Out of the Water

  • Members
  • 7 posts

Posted 11 December 2013 - 04:44 PM

I'm having a similar problem. I launch the .jar and it says 'The Java JAR file"Voltz.jar" could not be launched.'
Then I try the launch.sh and it says 'unable to access jar file Voltz.jar'.
I can't figure out how to fix it.



P.S. I'm on Mac OS X 10.9 and I'm using a 1.5.2 Forge Server

#11

BrickMan221

Posted 11 December 2013 - 11:26 PM

View Post3434boys, on 11 December 2013 - 04:44 PM, said:

I'm having a similar problem. I launch the .jar and it says 'The Java JAR file"Voltz.jar" could not be launched.'
Then I try the launch.sh and it says 'unable to access jar file Voltz.jar'.
I can't figure out how to fix it.



P.S. I'm on Mac OS X 10.9 and I'm using a 1.5.2 Forge Server
It has something to do with the voltz.jar file. Try redownloading it again here (assuming your using latest recommended voltz): http://mirror.techni...rver_v2.0.4.zip

#12

3434boys
    3434boys

    Out of the Water

  • Members
  • 7 posts

Posted 12 December 2013 - 07:26 PM

View PostMinecrafrGi, on 11 December 2013 - 11:26 PM, said:

It has something to do with the voltz.jar file. Try redownloading it again here (assuming your using latest recommended voltz): http://mirror.techni...rver_v2.0.4.zip
I am using the latest Voltz and I've redownloaded it about 3 times. Not sure what to do! Please help!!!

#13

_Dallas
    _Dallas

    Carpenter

  • Curse Premium
  • Curse Premium
  • 45 posts
  • Location: London

Posted 12 December 2013 - 07:38 PM

View Post3434boys, on 12 December 2013 - 07:26 PM, said:

I am using the latest Voltz and I've redownloaded it about 3 times. Not sure what to do! Please help!!!
Post the contents of your launch.sh :)

#14

3434boys
    3434boys

    Out of the Water

  • Members
  • 7 posts

Posted 13 December 2013 - 06:29 PM

#!/bin/sh
java -Xmx3G -Xms2G -jar Voltz nogui




Thats the launch.sh

#15

3434boys
    3434boys

    Out of the Water

  • Members
  • 7 posts

Posted 13 December 2013 - 10:04 PM

Do I need to include the Voltz.jar file path in the launch.sh?
Ive seen tutorials that say to do that but, as has been established, I'm on Mac and the tutorials are for Windows

#16

3434boys
    3434boys

    Out of the Water

  • Members
  • 7 posts

Posted 08 January 2014 - 07:16 PM

Does anyone know what to do?!?!?! I really need this server to work for my new series on Youtube.com/user/3434boys


Subscribe! lol u don't have to subscribe but it would be appreciated

#17

qtpriest
    qtpriest

    Support Guru

  • Members
  • 878 posts
  • Minecraft: stunseed

Posted 09 January 2014 - 03:01 AM

View PostFakeTruth, on 09 January 2011 - 10:30 PM, said:

Try this, while your working directory is the same directory as minecraft_server.jar is in
java -Xmx1024M -Xms1024M -jar ./minecraft_server.jar nogui

It could also be due to file permissions, try 'chmod'ing it to the right permissions (I don't know which)

View PostDesolationrift, on 28 May 2011 - 11:34 PM, said:

I got the same error then I moved the Minecraft_Server.jar file to my User folder and got this error message.


Then I moved it to my desktop and opened it as a jar file. It created the server properties and server log files. But did not work. Then I changed the IP in my server properties, it didn't work. Then I typed in the launch server command into terminal:


Then I got the same error I started with:

Unable to access jarfile minecraft_server.jar
God this is annoying someone please help. This is for version 1.6!

View PostFEARDAJEW, on 24 June 2013 - 03:25 AM, said:

I'm having a similar problem.
Im using Windows 8 btw...it sucks

anyway, I double click start.bat
(I followed the instructions on thw wiki page that's on minecraft.net)
when I click it, it tells me it cannot access jarfile minecraft_server.jar.
Im pretty sure the system path is working, I mean, it does lead to java.exe.
I followed the section of the wiki called
Start the Minecraft server (.jar version)
and when that did not work I followed
Starting the jar version without altering your system path
and idk whats wrong. please help, try to explain with less technical terms. Posted Image

View Post3434boys, on 08 January 2014 - 07:16 PM, said:

Does anyone know what to do?!?!?! I really need this server to work for my new series on Youtube.com/user/3434boys


Subscribe! lol u don't have to subscribe but it would be appreciated

youre going to make sure your script / bat file is in the same folder as your server file. and then also whichever name you have youre server file called change that to match what is in your pbatch. script file. or edit the script file to match the full name of you server. for example if i have a server launcher called server.jar ill have my start script that says.
java -Xmx1G -Xms1G -jar server.jar -o true nogui
PAUSE

the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
Be A part of a great server! connect with Theofficialmcserver.com

Posted Image