When I created my server and put in the right stuff for the bukkit run.bat it shows this when I open it; 'Java' is not reconised as a internal or external command. May I please Have some assistance?
Does it automatically do that when you first start up your server (you click run then the in the first 10 lines it says that)? If it does the try making a new run.bat and type in the lines. Best of Luck! ~Polish
Yes. I. Have. I double click it and it says That. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You obviously don't know what the error is. The problem is its not finding the java executable so you can either modify the systems environment paths or directly link it to java. Ex. C:/path/path/path/java -Xmx.... Etc.
Though I'm not very experienced with bat files, that error message sounds like it isn't from Java itself, suggesting it can't actually find the java.exe you are referring to. You might want to try using a full path to java.exe rather than abbreviating it with %ProgramFiles% in “%ProgramFiles%\Java\jre6\bin\java.exe”. I recommend you try find your java.exe and replace this with the full path to it, surrounded with quotation marks like this is. In Windows there's two Program Files if I remember correctly (one for 32-bit and one for 64-bit), so your %ProgramFiles% abbreviation may be referring to the wrong one. The java.exe you're hunting for should be located in C:\Program Files or C:\Program Files (x86) in a folder called "Java". As I said though, I don't have much experience in this, I might be completely wrong. Good luck
Dead-i I searched for a java file in %Programfiles% I coulden't find one, could it be because I'm using a laptop? Now its giving me "the filename, directory name, or volume label syntax is incorrect." EDIT by Moderator: merged posts, please use the edit button instead of double posting.
This is my command line. Win7 64-bit, Java 64-bit. The quotes are REQUIRED! Code: "C:\Program Files\Java\jre7\bin\java.exe" -Xms4096m -Xmx4096m -jar craftbukkit.jar -o true --log-limit 524288 --log-count 10 --log-strip-color
Bobcat00 Anything for 32 bit? Do you have any code for 32 bit Java? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thanks, I will try it out Bobcat00 I'm getting weird errors now, invalid initial heap size: -Xms4096m The specified size exceeds the maximum representable size ERROR: Could not create the Java Virtual Machine ERROR: a fatal exception has occured. Program will exit. Dead-i It will open now, but it gives me these errors, does anyone know about these? invalid initial heap size: -Xms4096m The specified size exceeds the maximum representable size ERROR: Could not create the Java Virtual Machine ERROR: a fatal exception has occured. Program will exit. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The -Xms is the initial amount of ram dedicated. If you don't have enough then you won't be able to start it. Try starting it with a smaller amount such as -Xms1024 and -Xmx2G. As for not being able to find your bukkit.jar file, make sure that you re-name your bukkit.jar file. When you download craftbukkit it dosn't initially have the name "craftbukkit" it has the version along with it, so you will need to re-name it to craftbukkit.jar and then you can use: java -Xms1024M -Xmx2G -jar craftbukkit.jar -o flase PAUSE