Hi, I've been trying to start a server,but when I open the batch file it says: 'java' is not recognized as an internal or external command operable program or batch file. I've tried a few times to solve this but have not gotten any solution. I changed 'java' in the batch file to the path to my java bin. I used program files (x86) in the route but should I be using just program files? I've got a 32 bit by the way if tha helps. Also do I need to Edit the path variables, or just anything in the environment variables I guess. Oh, and I'm running windows 7, my OS is x86 I''m pretty certain, and I have Java 7 By the I've reposted this thread because last one went by with no reply. Ok thanks
Copy and paste everything inside that file into a code line here. I'll fix the batch up for you and it should work than. You can also try downloading Java Platform 7, JDK at the following link. This is what actually got my server running successfully with just using "java" instead of the whole directory line. http://jdk7.java.net/download.html
Sure thing, though I'll have tiger back home though as I'm currently on vacation, but I'll either get you the information today or tomorrow morning.
Hello, since this topic was related to the RUN.batch file, I have decided to write my problem. When I run the RUN.bat file, it comes up with 'Error: Unable to access jarfile craftbukkit.jar' I used the Java-7 code for the file: Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE I'm running Windows 7, Ultimate, 64 bit and Java 7 If possible, can someone tell me where I can get the craftbukkit.jar and where I place it? Has been solved.
Timasaurus007 read this http://forums.bukkit.org/threads/guide-setting-up-bukkit-first-time-user-friendly.88175/ sycron2000 if u did everything correctly paste this in your batch file Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE if it doesnt work read this http://forums.bukkit.org/threads/guide-setting-up-bukkit-first-time-user-friendly.88175/
When I pasted in that text it's now coming up with the error: Cannot find path specified, am I ment to save it as something, or was I not supposed to delete the other text, which doesn't matter anyway because I saved it into a text document. Or am I supposed to do something else altogether...
Make sure your batch file is in the same folder as your 'craftbukkit.jar' file. Failing that, try renaming 'craftbukkit.jar' to 'craftbukkit' in the batch file (NOT the actual craftbukkit file itself)
u need to save the file as a batch extention eg) start.bat as i stated before if nothings working read this http://forums.bukkit.org/threads/guide-setting-up-bukkit-first-time-user-friendly.88175/
Thanks dude, I got it working, I renamed my craftbukkit(version) to just craftbukkit, it's appreciated.
Ok I'll try that link you gave me, but heres the contents of that batch file: @Echo OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit PAUSE Just like you gave me except I change craftbukkit.jar to craftbukkit Lol he did but I didn't. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
ohh sryz. where is your java installed? cause this is ment to work Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE if not then try this Code: @ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE put this in notepad save as "RUN.bat" rename your craftbukkit to craftbukkit.jar (show hidden extentions for this to not get craftbukkit.jar.jar) put the RUN.bat file in the same folder as your craftbukkit.jar file and click on RUN.bat and your done
Lol, now the only thing I need to do is update it, I guess this thread is solved but could you still provide a link or just information on how or just what I should do to update it? Thanks sooo much for all your help! Oh and by the way, isn't the server folder ment to have a mods folder... EDIT by Moderator: merged posts, please use the edit button instead of double posting.
No that's only for a modded version of crafbukkit which has FML but is not supported on buukit forums Link to newest RB http://cbukk.it/craftbukkit.jar