Hey, I'm trying to create a server and when I try to run start server.bat command prompt pops up and says that "Java is not a recognized command".
I'm running Vista 64 bit. Thanks.
It might also just be easier to change the .bat file to the full java.exe path, but changing the environment path will ensure future java programs work as well.
No amount of reinstalling or getting a different version will help you guys I'm afraid, gotta do this manually: the manly way.
You need to edit the environment variables.
"WHAT THE HELL ARE THOSE?!", you might ask.
Control Panel\System (or right click my computer/properties)
Advanced System Settings
Environment Variables...
Under the System Variables box (the lower of the two boxes)
scroll down the list until you find the variable called "Path"
click edit, and at the end of whatever is there add the following:
;DRIVELETTER:~\java\jre6\bin;
~ = folder where java is installed.
example:
%SystemRoot%\system32;c:\program files (x86)\java\jre6\bin;
^ only one semicolon should be between each path.
If you have the 64 bit java it should be under the regular Program Files folder instead of the x86 folder.
If Path does not exist create a new variable named Path.
Put the path to your java bin folder but without the first semicolon.
Thanks, but it didn't work. Notch please help us Vista users. If you ever plan on selling this game for 20 Euros you need to fix this considering how many people use Vista now.
Edit: NEVERMIND! I messed up. Works like a charm. All hail to those who know code.
Hi people,
I don't know if this thread is still going, but I'm trying to do this with windows 7 Ultimate x64, and I've done all those steps with setting up the Path system variable, but when I try to run it in the command prompt, I type:
Hi people,
I don't know if this thread is still going, but I'm trying to do this with windows 7 Ultimate x64, and I've done all those steps with setting up the Path system variable, but when I try to run it in the command prompt, I type:
but i get the message "unable to access jarfile minecraft_server.jar"
You'll get this message if the batch file isn't located in the same folder as the server JAR file. Either type the full path to minecraft_server.jar in your batch file, or just keep them together (easier).
but i get the message "unable to access jarfile minecraft_server.jar"
You'll get this message if the batch file isn't located in the same folder as the server JAR file. Either type the full path to minecraft_server.jar in your batch file, or just keep them together (easier).
Ok. This will probably sound like a really, really stupid question. BUT,
Ok. This will probably sound like a really, really stupid question. BUT,
what exactly is the "batch file"?
Sorry, I didn't read your post carefully. Once you get a working command-line, you can then copy/paste that into a text editor (like Notepad) and name the file whatever you want, with a .bat or .cmd extension (example: start-server.bat). Save it to your desktop, or wherever convenient, and run this to start the server.
Ok. This will probably sound like a really, really stupid question. BUT,
what exactly is the "batch file"?
Sorry, I didn't read your post carefully. Once you get a working command-line, you can then copy/paste that into a text editor (like Notepad) and name the file whatever you want, with a .bat or .cmd extension (example: start-server.bat). Save it to your desktop, or wherever convenient, and run this to start the server.
I'm running Vista 64 bit. Thanks.
I CAN'T run a server with 64bit Vista, exactly the same problem.
Hey Notch, help? :/
You need to edit the environment variables.
"WHAT THE HELL ARE THOSE?!", you might ask.
Control Panel\System (or right click my computer/properties)
Advanced System Settings
Environment Variables...
Under the System Variables box (the lower of the two boxes)
scroll down the list until you find the variable called "Path"
click edit, and at the end of whatever is there add the following:
;DRIVELETTER:~\java\jre6\bin;
~ = folder where java is installed.
example:
%SystemRoot%\system32;c:\program files (x86)\java\jre6\bin;
^ only one semicolon should be between each path.
If you have the 64 bit java it should be under the regular Program Files folder instead of the x86 folder.
If Path does not exist create a new variable named Path.
Put the path to your java bin folder but without the first semicolon.
Votekick/voteban, remote access, automated backups, cross-platform and more.
Control your server.
I had the same trouble when I had Java SE Runtime Environment (JRE) installed.
I installed the development kit, and the problem was gone.
http://java.sun.com/javase/downloads/index.jsp
Downloading and installing Java SE Development Kit (JDK) will hopefully resolve your problems.
Thanks, but it didn't work. Notch please help us Vista users. If you ever plan on selling this game for 20 Euros you need to fix this considering how many people use Vista now.
Edit: NEVERMIND! I messed up. Works like a charm. All hail to those who know code.
My server couldnt find Java either. This thread helped fix it.
This needs to be stickied.
Also im running Windows 7 64-bit.
So it seems to just be a 64-bit issue amirite?
I don't know if this thread is still going, but I'm trying to do this with windows 7 Ultimate x64, and I've done all those steps with setting up the Path system variable, but when I try to run it in the command prompt, I type:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
like we're supposed to, but i get the message "unable to access jarfile minecraft_server.jar"
am I doing something wrong?
Thanks
Make sure UAC isn't blocking anything and that file has enough permissions to run from it's location.
Lulz
You'll get this message if the batch file isn't located in the same folder as the server JAR file. Either type the full path to minecraft_server.jar in your batch file, or just keep them together (easier).
Ok. This will probably sound like a really, really stupid question. BUT,
what exactly is the "batch file"?
Sorry, I didn't read your post carefully. Once you get a working command-line, you can then copy/paste that into a text editor (like Notepad) and name the file whatever you want, with a .bat or .cmd extension (example: start-server.bat). Save it to your desktop, or wherever convenient, and run this to start the server.
Did you get your server to run?
haHA yes and THANK YOU
It Works!