Invalid or Corrupt jarfile craftbukkit.jar

Discussion in 'Bukkit Help' started by zolteex, Jul 17, 2012.

  1. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I accidentally deleted stuff in craftbukit.jar and when i press start.bat (to run the server) it says invalid or corrupt jarfile craftbukkit.jar

    PLEASE HELP! I dont know what i deleted. Do i have to restart? Make a new server?
    If so how do i transfer the plugins and world data....
  2. Offline

    iamcreeper42

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You will have to rename your .jar file you downloaded to craftbukkit, then it should work.
  3. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok how do i do that? sorry im not very good at this...
    can you give me a walkthrough? where would i find the .jar file and what would i rename it?
  4. Offline

    iamcreeper42

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The craftbukkit.jar that you downloaded must be renamed. The code that you copy paste to your run.bat is

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    Or it is
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    The craftbukkit.jar part is the name of the .jar file. So, if craftbukkit.jar is craftbukkit-R4.0.jar, you will have to rename craftbukkit-R4.0.jar to just craftbukkit.jar
  5. Online

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok it was already named craftbukkit.jar
    i put that code in to my start.bat and it said,

    Invalid or corrupt jarfile craftbukkit.jar
    Press any key to continue...
    'Or' is not recognized as an internal or external command,
    operable program or batch file.
    Error: Invalid or corrupt jarfile craftbukkit.jar
    Press any key to continue...
  7. Offline

    iamcreeper42

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try to redownload the craftbukkit jar file
  8. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok so when i redownload it what do i do with it? Do i have to restart the server completely?
    Do i just delete the current craftbukkit.jar and put in the new one?
    btw i gave you an internet

    This post has been edited 1 time. It was last edited by zolteex Jul 17, 2012.
  9. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok so when i redownload it what do i do with it? Do i have to restart the server completely?
    Do i just delete the current craftbukkit.jar and put in the new one?
  10. Online

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    1) Stop server
    2) delete old craftbukkit.jar
    3) rename craftbukkitR1.4 (or whatever it's called) to craftbukkit.jar
    4) Start server
    [IMG]
  11. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok i have downloaded it now i renamed it craftbukkit.jar
    Do i drag it into the server folder that has the plugins folder world folder etc.
  12. Online

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes.
  13. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok the console seems to load everything normal and it says Done. then when i go on minecraft the server isn't online. then i stop the server and when it says press any key to continue it says 'Or' is not recognized as an internal or external command, operable program or batch file. then it automatically starts up the server again. then i stop it again, and it actually stops.
  14. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    please don't leave me hanging...
  15. Offline

    Omnitv

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Delete the old craft bukkit and move the new bukkit.jar to you server directory
  16. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I did. When i start the server, everything runs like it should it all looks great. But when i go into minecraft it says the server is offline. (Can't reach server)
  17. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I start my server, and everything looks normal.
    I go on Minecraft and it says the server isnt even online. (Cant reach server)

    PLEASE HELP!!!!
    My start.bat file looks like this:

    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
  18. Offline

    frenchyfry

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Let me see your properties file
  19. Offline

    zolteex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    #Minecraft server properties
    #Tue Jul 03 13:02:04 PDT 2012
    allow-nether=true
    level-name=world
    enable-query=false
    allow-flight=true
    server-port=25565
    level-type=DEFAULT
    enable-rcon=false
    level-seed=
    server-ip=192.168.0.105
    max-build-height=256
    spawn-npcs=true
    white-list=false
    spawn-animals=true
    online-mode=true
    pvp=true
    difficulty=1
    server-name=Unknown Server
    gamemode=0
    max-players=40
    spawn-monsters=true
    generate-structures=true
    view-distance=10
    motd=Join! www.passioncraft.enjin.com
  20. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    have you port forwarded? and open your cmd and type this in plz
    Code:
    java -version
    tell me what it says

    This post has been edited 1 time. It was last edited by jacklin213 Jul 17, 2012.
  21. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  22. Online

    c0mp 13371331337 Moderator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Remove your IP address, it should be blank unless you have an advanced network/server setup.
  23. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    no and all u have to do is to copy the world, world_nether, world_the_end folders and the plugin folder and all the txt files
  24. Offline

    frenchyfry

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    let me see your server properties file
  25. Online

    c0mp 13371331337 Moderator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Merged multiple threads into one
  26. Offline

    Mikeambrose3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why can't you just re-download the bukkit jar file?
  27. Online

    c0mp 13371331337 Moderator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I see what you did here, you copied the entire code that iamcreeper42 provided. Those are actually two different pieces of scripting:
    The one that you would use depends upon whether you have Java 6 or Java 7 installed.
  28. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Quick tut of what to do
    FIRST - DOWNLOAD craftbukkit-RB HERE
    SECOND - Make a new folder for you server
    THIRD - open note pad and type this code in depending on what java you have (if you dont no what version java you have go to NOTE 1)

    FOR JAVA 1.6 (a.k.a jre6) put this code in
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    FOR JAVA 1.7 (a.k.a jre7) put this code in
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    save this file as RUN.bat or START.bat and save it to your server folder

    FIVE - double click run to start the server and create server files

    six- if you had a old server replace these folders with your old one:
    plugins , world , world_nether , world_the_end (if you dont have it dont worry),
    REPLACE ALL THE TXT FILES WITH YOUR ONES


    NOTE ONE) if you dont no what version java you run
    FOR XP and 7 USERS - on your key board hold the 'start' key and the 'R' key and type in "CMD"
    FOR MAC USERS - Open the Hard Drive, located on the Desktop. With the Hard Drive open, go into Applications, then into Utilities. With Utilities open, open the Terminal

    FOR BOTH MAC AND PC - now all you have to do is type 'java -version' and hit enter

    This post has been edited 1 time. It was last edited by jacklin213 Jul 17, 2012.
  29. Offline

    latoiner

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Check the file size again
    I think your download is failed.
  30. Offline

    kungfuko

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You just commented on a year old thread..
    wowzersam likes this.

Share This Page