Invalid or Corrupt jarfile craftbukkit.jar

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

  1. Offline

    zolteex

    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

    You will have to rename your .jar file you downloaded to craftbukkit, then it should work.
     
  3. Offline

    zolteex

    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

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

    zolteex

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

    iamcreeper42

    Try to redownload the craftbukkit jar file
     
  7. Offline

    zolteex

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

    zolteex

    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?
     
  9. 1) Stop server
    2) delete old craftbukkit.jar
    3) rename craftbukkitR1.4 (or whatever it's called) to craftbukkit.jar
    4) Start server
    [​IMG]
     
  10. Offline

    zolteex

    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.
     
  11. Yes.
     
  12. Offline

    zolteex

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

    zolteex

    please don't leave me hanging...
     
  14. Delete the old craft bukkit and move the new bukkit.jar to you server directory
     
  15. Offline

    zolteex

    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)
     
  16. Offline

    zolteex

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

    frenchyfry

    Let me see your properties file
     
  18. Offline

    zolteex

    #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
     
  19. have you port forwarded? and open your cmd and type this in plz
    Code (Text):
    1. java -version
    tell me what it says
     
  20. Offline

    c0mp

    Remove your IP address, it should be blank unless you have an advanced network/server setup.
     
  21. 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
     
  22. Offline

    frenchyfry

    let me see your server properties file
     
  23. Offline

    c0mp

    Merged multiple threads into one
     
  24. Why can't you just re-download the bukkit jar file?
     
  25. Offline

    c0mp

    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.
     
  26. 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 (Text):
    1. @ECHO OFF
    2. SET BINDIR=%~dp0
    3. CD /D "%BINDIR%"
    4. "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    5. PAUSE
    FOR JAVA 1.7 (a.k.a jre7) put this code in
    Code (Text):
    1. @ECHO OFF
    2. SET BINDIR=%~dp0
    3. CD /D "%BINDIR%"
    4. "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    5. 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
     
  27. Offline

    latoiner

    Check the file size again
    I think your download is failed.
     
  28. Offline

    kungfuko

    You just commented on a year old thread..
     
    wowzersam likes this.

Share This Page