Windows 8.1 Bukkit Server Help?!

Discuss the game, stories, screenshots, videos, ideas, creations, top score!?

Post Permalink
by HarrisonSJB » 1/9/2014

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.
Image
User avatar
Level 33
Artisan Turtle
Posts: 23
Joined: 1/4/13
Minecraft: iSpaghetti

Post Permalink
by bmanrules » 1/9/2014

Do you have JDK/Java added to your PATH?
Image
User avatar
Level 55
Grandmaster Programmer
Posts: 1218
Joined: 10/11/11

Post Permalink
by gorgonoff » 1/9/2014

HarrisonSJB wrote:'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.
Image
Image
Image
User avatar
Level 4
Apprentice Turtle
Posts: 220
Joined: 9/6/11

Post Permalink
by Master1398 » 1/9/2014

try putting just this into your WHATEVER.bat;
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
Spoiler
What if I say I'm not like the others?
What if I say I'm not just another one of your plays
You're the pretender
What if I say that I will never surrender?

Image
User avatar
Level 44
Master Explorer
Posts: 198
Joined: 10/10/12

Post Permalink
by HarrisonSJB » 1/9/2014

Master1398 wrote:try putting just this into your WHATEVER.bat;
java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true

Tried that mate :c Not workin'. I might just reinstall my java and come back with results.
Image
User avatar
Level 33
Artisan Turtle
Posts: 23
Joined: 1/4/13
Minecraft: iSpaghetti

Post Permalink
by HarrisonSJB » 1/9/2014

bmanrules wrote:Do you have JDK/Java added to your PATH?

Dunno lol. Could you check for me and re-write the code so it would potentially work?
Image
User avatar
Level 33
Artisan Turtle
Posts: 23
Joined: 1/4/13
Minecraft: iSpaghetti

Post Permalink
by HarrisonSJB » 1/9/2014

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?
Image
User avatar
Level 33
Artisan Turtle
Posts: 23
Joined: 1/4/13
Minecraft: iSpaghetti

Post Permalink
by Unusuals » 1/9/2014

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
User avatar
Level 1
New Crafter
Posts: 14
Joined: 1/5/14

Post Permalink
by Proud_Aussie » 1/9/2014

you might have Java 32bit
Image
User avatar
Level 1
New Farmer
Posts: 316
Joined: 9/11/13

Post Permalink
by PlayerOne773 » 1/9/2014

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
Level 2
Apprentice Miner
Posts: 8
Joined: 2/13/13

Post Permalink
by bmanrules » 1/9/2014

HarrisonSJB wrote:
bmanrules wrote:Do you have JDK/Java added to your PATH?

Dunno lol. Could you check for me and re-write the code so it would potentially work?



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 :P). Code is fine though.
Image
User avatar
Level 55
Grandmaster Programmer
Posts: 1218
Joined: 10/11/11

Post Permalink
by nickfromgreece » 1/9/2014

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 :P

oh and btw if you are thinking of setting up a permanent server on win 8.1 youre about to do a terrible mistake.
User avatar
Level 52
Grandmaster Programmer
Posts: 1296
Joined: 11/15/11
Says: System admin and Java developer

Next

Return to Discussion