I'm having trouble setting up my own bukkit server. This is the very first bukkit server I've tried to make so i barely know what I'm doing. When I double click on my run.bat file like someone told me to do to start the sever, I get this message : The system cannot find the path specified. I would appreciate it very much if someone could help me out here.
Ok, sorry for the noobish questions here, but where would i find the java i have, as far as i know java is up to date.
If it helps when i go to the cmd and type in java -version i get an error message saying java is recognized as an internal or external command.
Ok, I looked at the java and i have version 7 so it should be jre7 not jre6, I'm hoping that was the problem. If you hear from me again that probably wasn't it.
Added on: That was part of the problem but I am still getting the same message. I have it changed but I have no idea where I'm wrong.
The Meaning of Life, the Universe, and Everything.
Join Date:
7/2/2013
Posts:
45
Member Details
I had the exact same issue several months ago when I tried running a bucket server, java has this issue sometimes and it can be really annoying. To fix it, go to Control Panel\System and Security\System and click on the advanced system settings category on the right. Once you have the window open, click on "Environment Variables" on the bottom left and scroll down the system variables list until you see one called PATH.
BEFORE YOU EDIT ANYTHING IN THIS FILE, Make a copy of all the text in the file and save it to your desktop. This file is used by a whole host of programs and messing it up will most likely screw them up for good. That way, If anything goes wrong during this process you have a backup to resort to.
Scroll down to the very end of the line of text that appears, add a semicolon to separate your path from the previous one, and paste your java path. If you have a 32 bit version of windows then the path normally is "C:\Program Files\Java\jre7\bin". For a 64 bit OS it depends weather you installed the 32 of 64 bit version of java so it will either be "C:\Program Files\Java\jre7\bin" or "C:\Program Files(x86)\Java\jre7\bin" In the end your path file should look something like this:
PATH: C:\Program Files\Some Program\Program Data;C:\Program Files\Java\jre7\bin
/\
This Semicolon is very important!
Once your finished save everything and open up command prompt. To test your fix, simple type "java" in the console and it should print a whole bunch of random information. If so you will now be able to run your bucket server as well.
The Meaning of Life, the Universe, and Everything.
Join Date:
7/2/2013
Posts:
45
Member Details
Because you added the java path to your path variable you don't need the full java directory anymore you can just write:
@Echo off
java 1024M -Xmx1024M -jar craftbukkit.jar
pause
If that doesn't work you might have java installed under some other folder or your drive might be different, go to windows explorer and click on all of your folders until you locate the java bin, then double click the text above and copy that text EXACTLY!
Also, make sure you completely uninstall java 6 from your system through the control panel, if none of these options work then try totally uninstalling java 7 and re downloading the installer
Ok, so now i can run the whole thing, but it doesn't show on MC that its there. and every time i refresh the server list the command prompt says its lost connection
You are not supposed to be running anything Minecraft related on Java 8 as it is not developed under Java 8. Minecraft should currently be run under Java 7, 64 bit if possible.
Ok, so now i can run the whole thing, but it doesn't show on MC that its there. and every time i refresh the server list the command prompt says its lost connection
Hey, VideoCatGames!
There is nothing to worry about! It's supposed to say that, since you're pinging the server on the server list, and not actually connecting. If this worries you, remove the server from your server list and direct connect using "localhost" without the colons.
Also, may I recommend using Spigot? It's basically a better version of Bukkit. Just make sure to add nogui and pause to your bat file if you're going to make the switch. An example of what I mean is below.
There is nothing to worry about! It's supposed to say that, since you're pinging the server on the server list, and not actually connecting. If this worries you, remove the server from your server list and direct connect using "localhost" without the colons.
Also, may I recommend using Spigot? It's basically a better version of Bukkit. Just make sure to add nogui and pause to your bat file if you're going to make the switch. An example of what I mean is below.
@Echo off
"C:\Program Files\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit.jar
pause
If it helps anymore my computer runs with windows 7 and is 64-bit.
If it helps when i go to the cmd and type in java -version i get an error message saying java is recognized as an internal or external command.
Added on: That was part of the problem but I am still getting the same message. I have it changed but I have no idea where I'm wrong.
BEFORE YOU EDIT ANYTHING IN THIS FILE, Make a copy of all the text in the file and save it to your desktop. This file is used by a whole host of programs and messing it up will most likely screw them up for good. That way, If anything goes wrong during this process you have a backup to resort to.
Scroll down to the very end of the line of text that appears, add a semicolon to separate your path from the previous one, and paste your java path. If you have a 32 bit version of windows then the path normally is "C:\Program Files\Java\jre7\bin". For a 64 bit OS it depends weather you installed the 32 of 64 bit version of java so it will either be "C:\Program Files\Java\jre7\bin" or "C:\Program Files(x86)\Java\jre7\bin" In the end your path file should look something like this:
PATH: C:\Program Files\Some Program\Program Data;C:\Program Files\Java\jre7\bin
/\
This Semicolon is very important!
Once your finished save everything and open up command prompt. To test your fix, simple type "java" in the console and it should print a whole bunch of random information. If so you will now be able to run your bucket server as well.
Hope this helps
Add on: here is the updated run.bat content
@Echo off
"C:\Program Files(x86)\Java\jre7\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit.jar
pause
If anything is wrong please tell me, and EXTRA detail if i need to path, because I don't know much on it.
@Echo off
java 1024M -Xmx1024M -jar craftbukkit.jar
pause
If that doesn't work you might have java installed under some other folder or your drive might be different, go to windows explorer and click on all of your folders until you locate the java bin, then double click the text above and copy that text EXACTLY!
Also, make sure you completely uninstall java 6 from your system through the control panel, if none of these options work then try totally uninstalling java 7 and re downloading the installer
Add on: Is there anyway someone could make this server for my specs and just email it to me?
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1024M -jar craftbukkit.jar -o true
PAUSE
It doesn't require the path variable similar to your first post, I think you may have had an invalid character in your directory
If that doesn't work I recommend you consult this page on the bukkit wiki
Or this tutorial on the java website about setting the path variable that goes into more detail than my tutorial.
Thank you so much it worked. was it the @ECHO OFF?
This is as it seems. You have multiple instances of the server running, you have to /stop one of them or kill the process in task manager.
Windows can only have 1 application on a port AFAIK, so this is why it does that when you have multiple servers running.
You are not supposed to be running anything Minecraft related on Java 8 as it is not developed under Java 8. Minecraft should currently be run under Java 7, 64 bit if possible.
Download the AliensVsPredator Minecraft Mod today at http://aliensvspredator.org
Hey, VideoCatGames!
There is nothing to worry about! It's supposed to say that, since you're pinging the server on the server list, and not actually connecting. If this worries you, remove the server from your server list and direct connect using "localhost" without the colons.
Also, may I recommend using Spigot? It's basically a better version of Bukkit. Just make sure to add nogui and pause to your bat file if you're going to make the switch. An example of what I mean is below.
java -Xms2048m -Xmx6000m -XX:PermSize=128m -jar spigot.jar nogui
pause
It was the path (java isn't recognized as an internal or external command).
I tried doing the localhost and it just says timed out.