Corrupt jar file????

Discussion in 'Bukkit Help' started by Fergym, Aug 23, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Fergym

    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! :D
     
  2. Offline

    JordyPwner

    Fergym which version are you using?
     
    Fergym likes this.
  3. Offline

    Fergym

    JordyPwner My java is java version seven if that's what your asking
     
  4. Offline

    JordyPwner

    Fergym i mean your jar file what craftbukkit version you use?
     
  5. Offline

    LHammonds

    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.
     
  6. Offline

    Fergym

    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.]
     
  7. Offline

    LHammonds

    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
     
  8. Offline

    Fergym

    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.
     
    Last edited by a moderator: Jun 9, 2016
  9. Offline

    LHammonds

    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
     
  10. Offline

    Fergym

    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.
     
    Last edited by a moderator: Jun 9, 2016
  11. Offline

    LHammonds

    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:
    1. Download latest Craftbukkit 1.7.10-R0.1
    2. Move the downloaded file to C:\Craftbukkit\craftbukkit-1.7.10-R0.1-20140817.180155-16.jar
    3. 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
    4. Run start-server.bat
     
  12. Offline

    Fergym

    LHammonds nvm mind fixed it with a good one minute google search thanks for the help though!
     
Thread Status:
Not open for further replies.

Share This Page