I'm trying to create my own multiplayer server to play with my friends, and it seems like all the steps work except for one. You should know I'm running on Windows 8.
So i completed all of the steps flawlessly until i got to the part where you need to make a .bat, or batch file. i created a text document in notepad and entered java -Xms512M -Xmx1G -jar minecraft_server.jarjust like the tutorial page says to. Then i save it as run.bat and select the Save as type: All files option. It then appears in the server folder, and when i tell it to open it should run the server right? well when i tell it to open it simply shows the cmd prompt box for a fraction of a second, closes it, then nothing else happens. If i just tell the server to start by opening the minecraft_server.1.7. it starts fine, and i can join the server using my IP address in any way i like, but it tells my friends they cannot connect. I have gone through the Path: environmental variables process and believe that is correct, so what am i doing wrong? I believe the problem is with the batch file, since it should start the server, but instead does absolutely nothing.
thanks for the "pause" tip, that will be handy in the future.
Ok, the command prompt says 'java' is not recognized as an internal or external command, operable program or batch file.
The tutorial says this means that my java is not up to date, but even after re-installing it gives me the same message. It says im on Java 7 update 45, and after running the verification it tells me it's up to date. What's wrong?
Im fairly sure it's 32 bit, but don't know how to check. Can you tell me what to do incase of either 32 or 64? I'm willing to try as many ways as possible.
I tried using
java -Xms2048 -Xmx2048M -exe Minecraft_Server.exe -o true
PAUSE
but i got the same error message suggesting my Java is out of date.
that error message " 'java' is not recognized as an internal or external command, operable program or batch file."
means you have not set your path value correctly
and in your batchfile code quoted above, you are missing the unit of measure(M) off the end of your -Xms switch
to determine 64/32 you can type on the command line:
java -d64 -version
If it's not a 64-bit version, you'll get a message that looks like:
"This Java instance does not support a 64-bit JVM. Please install the desired version."
that error message " 'java' is not recognized as an internal or external command, operable program or batch file."
means you have not set your path value correctly
and in your batchfile code quoted above, you are missing the unit of measure(M) off the end of your -Xms switch
to determine 64/32 you can type on the command line:
java -d64 -version
If it's not a 64-bit version, you'll get a message that looks like:
"This Java instance does not support a 64-bit JVM. Please install the desired version."
Thanks to some poor instructions on the internet (figures), i erased the path value already existing before inserting ;"c:\Program Files\Java\jre7\bin" onto the end. I tried looking up the default path value online for Windows 8, but it seems like everyone says something different, and the one i put in clearly didnt work. Do you know what i can do?
Thanks to some poor instructions on the internet (figures), i erased the path value already existing before inserting ;"c:\Program Files\Java\jre7\bin" onto the end. I tried looking up the default path value online for Windows 8, but it seems like everyone says something different, and the one i put in clearly didnt work. Do you know what i can do?
to set a PATH for windows 8 its the same as setting a path for windows 7. here are the steps to be able to get your java to work.
1. open control panel
2. click system and security
3. system
4 look on the left hand side and youll see an option for advanced system settings and youll see a window open looking like this
5. if the above procedure doesnt work or cant find it then try this. press your windows key + R that will open up a run box
6. type control sysdm.cpl
press enter
7. click on enviroment variables and another window will open looking like this
7. in that window scorll down a bit till you see a variable called PATH .. all caps if one doesnt exist youll have to make one
8. verify java instalation by locating your java install folder if found you should end up with something like this
windows 64bit : PATH - C:\WINDOWS\system32;C:\Program Files\Java\jre7\bin
windows 32bit PATH - C:\WINDOWS\system32;C:\Program Files(x86)\Java\jre7\bin
also a not for what in this is when you said you deleted everything in that PATCH variable .. THIS it wat is supossed to go in that place.
9. click ok three time i think it is so it saves. then to check open a command promtp and type
java -version
you will see that java is now working.
Rollback Post to RevisionRollBack
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
Thanks to some poor instructions on the internet (figures), i erased the path value already existing before inserting ;"c:\Program Files\Java\jre7\bin" onto the end. I tried looking up the default path value online for Windows 8, but it seems like everyone says something different, and the one i put in clearly didnt work. Do you know what i can do?
reinstall windows and all your apps, or track down their relevant path variables and add them one by one?
srry, perhaps im misunderstanding the current issue
reinstall windows and all your apps, or track down their relevant path variables and add them one by one.
NO DO NOT DO THIS... in my post i told you what it is you needed to do to get your path correct and set up java all this will do is create one more problem where there shouldnt be. also survivzor thats not how paths work. and variables act and thats not what they do. why reinstall windows when you can just point your system to your java install like it is supposed to be doing in the first place. and why mess with every single program on your computer when all youre trying to fix is ust ONE all the other ones work just fine. please do some research on this issue
in my 'path variable, it contains the paths for many many different applications. theres nvidia entries, windows entries, java etc etc.
the issue that the muffinman seemed to have was that all of these paths were overwritten when he replaced them just with the java path.
im just wondering how your solution replaces all of the missing entries.
it doesnt replace the missing entries for every single program thats there. but i do have a TON of prgrams games and other things on my computer and inside this path variable even though i have all these other programs i still have just 2 entries. system32 and java. pretty sure he will be fine
Rollback Post to RevisionRollBack
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
to set a PATH for windows 8 its the same as setting a path for windows 7. here are the steps to be able to get your java to work.
1. open control panel
2. click system and security
3. system
4 look on the left hand side and youll see an option for advanced system settings and youll see a window open looking like this
5. if the above procedure doesnt work or cant find it then try this. press your windows key + R that will open up a run box
6. type control sysdm.cpl
press enter
7. click on enviroment variables and another window will open looking like this
7. in that window scorll down a bit till you see a variable called PATH .. all caps if one doesnt exist youll have to make one
8. verify java instalation by locating your java install folder if found you should end up with something like this
windows 64bit : PATH - C:\WINDOWS\system32;C:\Program Files\Java\jre7\bin
windows 32bit PATH - C:\WINDOWS\system32;C:\Program Files(x86)\Java\jre7\bin
also a not for what in this is when you said you deleted everything in that PATCH variable .. THIS it wat is supossed to go in that place.
9. click ok three time i think it is so it saves. then to check open a command promtp and type
java -version
you will see that java is now working.
I tried both of those path variables and checked them with the command prompt, neither worked. Both gave methe 'java' is not recognized as an internal or external command, operable program or batch file. message.
Also, Survivzor, i would prefer not to have to do a full system restore or re-install windows, i would like to use a different method.
I tried both of those path variables and checked them with the command prompt, neither worked. Both gave methe 'java' is not recognized as an internal or external command, operable program or batch file. message.
Also, Survivzor, i would prefer not to have to do a full system restore or re-install windows, i would like to use a different method.
those above 2 examples were just that. examples you will have to find your java install and put that there to link to your java bin folder or javaw.exe. the first one in the line for system32 is what was there at first. and comes by default. remember it needs to be capitalized as well.. PATH. also those are for java 7. if you do not have java 7 those will not work. please try installing java 7. if that doesnt work then you may have to add a couple more paths for java. you should have a couple other things in your variables as well like QTJAVA and CLASSPATH. do you have those? if you do whats in them?
example
if that STILL fails to work for you then there is a little trick you can do. make your .bat file point directly to your java installation folder. i have 2 versions of java on my computer and i type java in command prompt for java 6 cuz java 6 is so much better lol. but there are times when minecraft HAS to have java 7 so i made a .bat file that looks like this.
those above 2 examples were just that. examples you will have to find your java install and put that there to link to your java bin folder or javaw.exe. the first one in the line for system32 is what was there at first. and comes by default. remember it needs to be capitalized as well.. PATH. also those are for java 7. if you do not have java 7 those will not work. please try installing java 7. if that doesnt work then you may have to add a couple more paths for java. you should have a couple other things in your variables as well like QTJAVA and CLASSPATH. do you have those? if you do whats in them?
example
if that STILL fails to work for you then there is a little trick you can do. make your .bat file point directly to your java installation folder. i have 2 versions of java on my computer and i type java in command prompt for java 6 cuz java 6 is so much better lol. but there are times when minecraft HAS to have java 7 so i made a .bat file that looks like this.
Also, I tried the trick you recommended for pointing my .bat file directly to my java installation folder, the command prompt when i attempt to open the file says: Error: Unable to access jarfile spigot.jar
Also, I tried the trick you recommended for pointing my .bat file directly to my java installation folder, the command prompt when i attempt to open the file says: Error: Unable to access jarfile spigot.jar
ok then it looks like you have a 32 bit install of java 7 then make sure youve installed it properly. also just rename spigot.jar to the name of your server launcher. spigot.jar is what i use.
in your PATH put
[/size]
ok then it looks like you have a 32 bit install of java 7 then make sure youve installed it properly. also just rename spigot.jar to the name of your server launcher. spigot.jar is what i use.
in your PATH put
good news! when i enter java -version into command prompt i get results, so my path is working. Thanks for the help with that!
Now, can you clarify what you meant about the whole naming thing? i believe you meant to replace spigot.jar in "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1000M -Xms1000M -jar spigot.jar -o true PAUSE
is that correct? If so, how can i determine the current name of my server launcher? is it simply whatever I've named the .jar file with the java icon in the minecraft server folder? because i tried that and the command prompt gave me the message Error: Unable to access jarfile minecraft_server.jar
minecraft_server.jar being the name with the java icon previously mentioned as it is seen in my server folder.
good news! when i enter java -version into command prompt i get results, so my path is working. Thanks for the help with that!
Now, can you clarify what you meant about the whole naming thing? i believe you meant to replace spigot.jar in "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1000M -Xms1000M -jar spigot.jar -o true PAUSE
is that correct? If so, how can i determine the current name of my server launcher? is it simply whatever I've named the .jar file with the java icon in the minecraft server folder? because i tried that and the command prompt gave me the message Error: Unable to access jarfile minecraft_server.jar
minecraft_server.jar being the name with the java icon previously mentioned as it is seen in my server folder.
HOORAY! im glad we could get your java working properly! XD and yes "spigot.jar" would be the one to change the name to whatever your minecraft server launcher is. if you have to just rename the server file. also depending on what version youre using. if its an Exe youll have to change the -jar to -exe. and minecraft_server.exe as well. when you click on the .bat file make sure its in the same folder as your server.
So i completed all of the steps flawlessly until i got to the part where you need to make a .bat, or batch file. i created a text document in notepad and entered java -Xms512M -Xmx1G -jar minecraft_server.jar just like the tutorial page says to. Then i save it as run.bat and select the Save as type: All files option. It then appears in the server folder, and when i tell it to open it should run the server right? well when i tell it to open it simply shows the cmd prompt box for a fraction of a second, closes it, then nothing else happens. If i just tell the server to start by opening the minecraft_server.1.7. it starts fine, and i can join the server using my IP address in any way i like, but it tells my friends they cannot connect. I have gone through the Path: environmental variables process and believe that is correct, so what am i doing wrong? I believe the problem is with the batch file, since it should start the server, but instead does absolutely nothing.
Help please?
Ok, the command prompt says 'java' is not recognized as an internal or external command, operable program or batch file.
The tutorial says this means that my java is not up to date, but even after re-installing it gives me the same message. It says im on Java 7 update 45, and after running the verification it tells me it's up to date. What's wrong?
Save as "run.bat"
For MAC OS X:
Save as "start_server.command"
For Linux:
Save as "run.sh"
1GB = 1024
2GB = 2048
3GB = 3072
4GB = 4096
12GB=12288
The maximum amount of RAM you will be able to allocate for your 32bit Java is 1024M (1GB)
forgot to quote you so you'd know, i posted my reply.
I tried using
java -Xms2048 -Xmx2048M -exe Minecraft_Server.exe -o true
PAUSE
but i got the same error message suggesting my Java is out of date.
If that doesn't work. Look here
Im fairly sure it's 32 bit, but don't know how to check. Can you tell me what to do incase of either 32 or 64? I'm willing to try as many ways as possible.
that error message " 'java' is not recognized as an internal or external command, operable program or batch file."
means you have not set your path value correctly
and in your batchfile code quoted above, you are missing the unit of measure(M) off the end of your -Xms switch
to determine 64/32 you can type on the command line:
If it's not a 64-bit version, you'll get a message that looks like:
"This Java instance does not support a 64-bit JVM. Please install the desired version."
Thanks to some poor instructions on the internet (figures), i erased the path value already existing before inserting ;"c:\Program Files\Java\jre7\bin" onto the end. I tried looking up the default path value online for Windows 8, but it seems like everyone says something different, and the one i put in clearly didnt work. Do you know what i can do?
to set a PATH for windows 8 its the same as setting a path for windows 7. here are the steps to be able to get your java to work.
1. open control panel
2. click system and security
3. system
4 look on the left hand side and youll see an option for advanced system settings and youll see a window open looking like this
5. if the above procedure doesnt work or cant find it then try this. press your windows key + R that will open up a run box
6. type control sysdm.cpl
press enter
7. click on enviroment variables and another window will open looking like this
7. in that window scorll down a bit till you see a variable called PATH .. all caps if one doesnt exist youll have to make one
8. verify java instalation by locating your java install folder if found you should end up with something like this
9. click ok three time i think it is so it saves. then to check open a command promtp and type
you will see that java is now working.
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
srry, perhaps im misunderstanding the current issue
NO DO NOT DO THIS... in my post i told you what it is you needed to do to get your path correct and set up java all this will do is create one more problem where there shouldnt be. also survivzor thats not how paths work. and variables act and thats not what they do. why reinstall windows when you can just point your system to your java install like it is supposed to be doing in the first place. and why mess with every single program on your computer when all youre trying to fix is ust ONE all the other ones work just fine. please do some research on this issue
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
the issue that the muffinman seemed to have was that all of these paths were overwritten when he replaced them just with the java path.
im just wondering how your solution replaces all of the missing entries.
it doesnt replace the missing entries for every single program thats there. but i do have a TON of prgrams games and other things on my computer and inside this path variable even though i have all these other programs i still have just 2 entries. system32 and java. pretty sure he will be fine
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
I tried both of those path variables and checked them with the command prompt, neither worked. Both gave me the 'java' is not recognized as an internal or external command, operable program or batch file. message.
Also, Survivzor, i would prefer not to have to do a full system restore or re-install windows, i would like to use a different method.
those above 2 examples were just that. examples you will have to find your java install and put that there to link to your java bin folder or javaw.exe. the first one in the line for system32 is what was there at first. and comes by default. remember it needs to be capitalized as well.. PATH. also those are for java 7. if you do not have java 7 those will not work. please try installing java 7. if that doesnt work then you may have to add a couple more paths for java. you should have a couple other things in your variables as well like QTJAVA and CLASSPATH. do you have those? if you do whats in them?
example
if that STILL fails to work for you then there is a little trick you can do. make your .bat file point directly to your java installation folder. i have 2 versions of java on my computer and i type java in command prompt for java 6 cuz java 6 is so much better lol. but there are times when minecraft HAS to have java 7 so i made a .bat file that looks like this.
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
I have both of those variables and they are as follows,
.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip CLASSPATH
C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip QTJAVA
Also, I tried the trick you recommended for pointing my .bat file directly to my java installation folder, the command prompt when i attempt to open the file says: Error: Unable to access jarfile spigot.jar
ok then it looks like you have a 32 bit install of java 7 then make sure youve installed it properly. also just rename spigot.jar to the name of your server launcher. spigot.jar is what i use.
in your PATH put
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.
good news! when i enter java -version into command prompt i get results, so my path is working. Thanks for the help with that!
Now, can you clarify what you meant about the whole naming thing? i believe you meant to replace spigot.jar in
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1000M -Xms1000M -jar spigot.jar -o true
PAUSE
is that correct? If so, how can i determine the current name of my server launcher? is it simply whatever I've named the .jar file with the java icon in the minecraft server folder? because i tried that and the command prompt gave me the message
Error: Unable to access jarfile minecraft_server.jar
minecraft_server.jar being the name with the java icon previously mentioned as it is seen in my server folder.
HOORAY! im glad we could get your java working properly! XD and yes "spigot.jar" would be the one to change the name to whatever your minecraft server launcher is. if you have to just rename the server file. also depending on what version youre using. if its an Exe youll have to change the -jar to -exe. and minecraft_server.exe as well. when you click on the .bat file make sure its in the same folder as your server.
the earth first! we can strip mine the rest of the universe after. click the up arrow if i helped.