1
Windows 8.1 Bukkit Server Help?!
Hey guys. Recently I've been attempting to make a minecraft Bukkit server on Windows 8.1. I have a 64 bit operating system with Java 7. This is the code I am putting into my batch file:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
PAUSE
And this is my response:
C:\Users\Harrison\Desktop\Bukkit Server>java -Xmx1024M -jar craftbukkit.jar -o t
rue
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Harrison\Desktop\Bukkit Server>PAUSE
Press any key to continue . . .
And yes, I have selected the entire output and pasted it into the thread, so it's 100% legit. No screenies required. Can anyone help? Does anyone know a solution? Pls reply asap. Just remember, windows 8.1, java 7 and 64 bit operating system.
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
PAUSE
And this is my response:
C:\Users\Harrison\Desktop\Bukkit Server>java -Xmx1024M -jar craftbukkit.jar -o t
rue
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Harrison\Desktop\Bukkit Server>PAUSE
Press any key to continue . . .
And yes, I have selected the entire output and pasted it into the thread, so it's 100% legit. No screenies required. Can anyone help? Does anyone know a solution? Pls reply asap. Just remember, windows 8.1, java 7 and 64 bit operating system.
Create an account or sign in to comment.
20
1
This is how you can fix this: WARNING DO THIS AT YOUR OWN RISK
1. open up a command prompt (DOS)
2. check that inside the jre folder theres a folder named bin
3. if there is type this in the command prompt:
setx PATH "%PATH%;C:\ProgramFiles(x86)\Java\jre7\bin"
Double check that the path above is correct, and the folder naming(might need spaces in program files)!!!
and DO NOT REMOVE THE QUOTES
1. open up a command prompt (DOS)
2. check that inside the jre folder theres a folder named bin
3. if there is type this in the command prompt:
setx PATH "%PATH%;C:\ProgramFiles(x86)\Java\jre7\bin"
Double check that the path above is correct, and the folder naming(might need spaces in program files)!!!
and DO NOT REMOVE THE QUOTES
1
or:
Select Start -> Computer -> System Properties -> Advanced system settings -> Environment Variables -> System variables -> PATH.
Prepend C:\Program Files\Java\jdk1.6.0_27\bin;to the beginning of the PATH variable.
your version of the jdk may be different. If it is, change it to the name you have
don’t forget that semi-colon(;) at the end (this is the separator character used between all the URLs in the path
Click OK three times.
Select Start -> Computer -> System Properties -> Advanced system settings -> Environment Variables -> System variables -> PATH.
Prepend C:\Program Files\Java\jdk1.6.0_27\bin;to the beginning of the PATH variable.
your version of the jdk may be different. If it is, change it to the name you have
don’t forget that semi-colon(;) at the end (this is the separator character used between all the URLs in the path
Click OK three times.
1
HarrisonSJBHey guys. Recently I've been attempting to make a minecraft Bukkit server on Windows 8.1. I have a 64 bit operating system with Java 7. This is the code I am putting into my batch file:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
PAUSE
And this is my response:
C:\Users\Harrison\Desktop\Bukkit Server>java -Xmx1024M -jar craftbukkit.jar -o t
rue
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Harrison\Desktop\Bukkit Server>PAUSE
Press any key to continue . . .
And yes, I have selected the entire output and pasted it into the thread, so it's 100% legit. No screenies required. Can anyone help? Does anyone know a solution? Pls reply asap. Just remember, windows 8.1, java 7 and 64 bit operating system.
you do not have Java set to your environment paths.
and you are not executing your batch file, rendering it pointless.
1
Linux all the way xD
1
^ I even use linux for my desktop now
1
This means Java is not added in the PATH system variable I can tell you what to do but thats editing the core of the system 1 wrong move and its bye bye windows
oh and btw if you are thinking of setting up a permanent server on win 8.1 youre about to do a terrible mistake.
oh and btw if you are thinking of setting up a permanent server on win 8.1 youre about to do a terrible mistake.
1
Editing Enviromental Values isn't editing the core of the system and can't really harm Windows. There is nothing wrong with setting up a server on Windows 8.1, as the OS itself is pretty easy on ram usage. Sure, Windows 8.1 server edition is probably better, but it won't matter too much on a Minecraft server. @The Linux comments the Linux Desktop OS you're using isn't much better than Windows 8.1. To run a server a version of Linux suited for servers would be smarter
1
If you screw up the PATH variable the DOS wont be able to find all the executtables for the commands run.
1
easiest workaround will be renaming your bukkit as minecraft_server. and just using
the file path provided for vanilla server on minecraft.net. it always works
the file path provided for vanilla server on minecraft.net. it always works
1
you might have Java 32bit
1
Had this problem and uninstalling java and reinstalling it works great I'm on windows 8.1 too if you want you can have my server.bat config but I use java -Xmx1024M -jar craftbukkit.jar -o true
PAUSE
PAUSE
1
Update: Just reinstalled java, but to no avail. I've reinstalled, used the same code, and I also used java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true but it still didn't work...
Any suggestions?
Any suggestions?
1
try putting just this into your WHATEVER.bat;
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
1
Tried that mate :c Not workin'. I might just reinstall my java and come back with results.
1
HarrisonSJB
'java' is not recognized as an internal or external command,
operable program or batch file.
Try to re-install lava? And check java.com for more info about this problem.
1
Do you have JDK/Java added to your PATH?
1
Dunno lol. Could you check for me and re-write the code so it would potentially work?
1
None of the above comments will work You need to add Java to your enviromental PATH on your PC. I can't check for you because only you can, since I don't have access to your PC (Don't be lazy ). Code is fine though.
1
I have an actual folder called Java in path and it actually exists. I just don't understand why windows won't find it.
C: Drive (Local Disc) >>> Program Files (x86) >>> Java >>> jre7
Then it has a bin folder and a lib folder... Have I done sommet wrong?
C: Drive (Local Disc) >>> Program Files (x86) >>> Java >>> jre7
Then it has a bin folder and a lib folder... Have I done sommet wrong?
1
PATH and having a folder on your harddrive are two different things.