When I click on my run.bat file (to run my server) what comes up is Error:invalid or corrupt jar file press any key to continue... please help!! I've been trying to make a server for a while I have installed my correct java version e.c.t I have put the path to it in the path element in my variables thing and I don't know what's going on! if someone from bukkit or some one who has experienced this problem but fixed please help! thank you!
Post the contents of your run.bat batch file. Post the output of "java -version" (the java.exe that you are actually using) Post what version of craftbukkit (and build) that you are using. Since you said "run.bat" I assume it is come version of Windows.
LHammonds Run contents:java -Xmx2048M -jar craftbukkit.jar -o true PAUSE Java version: 7 Craftbukkit build and version: version:1.7.10 bukkit build: development Oh and I'm using windows 7 [edit by JaguarJo: merged posts. Please use the edit option to add onto your comment instead of double-posting. Thanks.]
Try this: Move the server folder to C:\Craftbukkit\ Put this batch file in that folder: start-server.bat Code: @ECHO OFF TITLE Bukkit SET RAM2USE=2048 CD /D C:\Craftbukkit "%ProgramFiles%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui PAUSE If you still get the corrupted .jar message, try disabling your Antivirus system temporarily and do it again. If it still says it is corrupted, download a new copy from dl.bukkit.org LHammonds
Thanks!, I'll try it tomorrow I'm gonna get off now but thanks! LHammonds There wasn't a file named "Craftbukkit" in C: LHammonds also note that my computer only has 5.85 use able gigs of RAM EDIT by Moderator: merged posts, please use the edit button instead of double posting.
There isn't supposed to be a file there. You need to make a "folder" named "Craftbukkit in C: drive. Then move the server files in that folder. Example command prompt commands: Code: C: CD \ md Craftbukkit
LHammonds thanks LHammonds will the code you gave me for the run file only dedicate two gigs of ram to my server? LHammonds I have done ecerything you've said and now when I click the star-server.bat file a new error message comes up saying Error:Unable to accsess jarfile craftbukkit.jar EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Well ya, I specified that amount based on what you told me earlier that you were trying to use: Then I suggest you do the following: Download latest Craftbukkit 1.7.10-R0.1 Move the downloaded file to C:\Craftbukkit\craftbukkit-1.7.10-R0.1-20140817.180155-16.jar Rename the file to "craftbukkit.jar" using Windows Explorer or the following commands at a command prompt Code: ren C:\Craftbukkit\craftbukkit-1.7.10-R0.1-20140817.180155-16.jar craftbukkit.jar Run start-server.bat