Solved Bukkit Starter Issue

Discussion in 'Bukkit Help' started by karatetoes, May 20, 2012.

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

    karatetoes

    Ok so I am currently using the bukkit that is not the one the bukkit wiki said but the Newb-Friendly one Which Is
    Code:
    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "ProgramFiles\Java\jre7\bin\java.exe" -Xincgc -Xmx1600M -jar "craftbukkit-1.2.5-R1.0.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  java -Xincgc -Xmx1600M -jar "craftbukkit-1.2.5-R1.0.jar"
    PAUSE
    Now I am trying to do two things right now:
    I am first trying to see if i can dedicate more ram to this starter first and then see if it works. The issue that occurs in cmd when i try to add more ram to the code is:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine
    Press any key to continue....

    and then it closes out after i press a key
    I have tried adding the -d64 (which gets the issue that -d64 is an unrecognized option) and I have tried to change the Program Files to ProgramFiles(x86) and neither of those work

    The second thing I am trying to do is to try to use the Starter on the Bukkit Wiki that you make yourself

    When i try to use the other starter that bukkit requires you to make for yourself :
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.2.5-R1.0.jar
    PAUSE
    I get the issue
    Unable to access jar file craftbukkit-1.2.5-R1.0
    Press any key to continue....

    Now I know that the craftbukkit-1.2.5-R1.0 is in the same Winrar Folder, Archive or whatever its called and the craftbukkit is in the same location though is what im trying to say
    so I dont understand why it cant find the jar file if it is right there

    Hope you can solve these issues which i am having and I have tried google and it appears that all of them either end with no solution or a "figured it out myself but thanks anyways guys" response

    Technical Specs
    Java 7+Java 6 (I have the 64bit version and am trying to use java 7 without getting rid of Java 6)
    Windows 7 Home Premium
    Gateway 64-bit Operating System
    RAM: 8GB installed memory+8GB external memory from a flashdrive
    Processor: Intel(R) Core (TM) i7 CPU 870 @ 2.93 GHz
     
  2. Offline

    Painguy

    1. Rename craftbukkit-1.2.5-R1.0.jar to craftbukkit.jar
    2. I might be wrong, but for ur first script I believe the memory u allocate has to be a power of 2.
    3. Why are u checking if ur using a 64bit or 32bit system? u should always assume that ur running on 64bit. That bit of the check seems unnecessary IMO
    4. I suggest doing an if else as that is easier to read and understand. once u can read that then try nested ifs
    5. I might be wrong again, but i don't believe that u need to define the path for ur first if check for java as the java command is already integrated into the cmd environment.
     
  3. Offline

    karatetoes

    k i tried renaming craftbukkit-1.2.5-R1.0.jar before to just craftbukkit.jar and i tried to rename the RUN.bat files craftbukkit.jar to the craftbukkit-1.2.5-R1.0.jar and both of these get the issue saying it can't access the jar file

    Now i have Winrar and the JAR extension under OPTIONS is unchecked because when I tried to check it said that it needed to change administrative settings on the computer that could harm it so I chose no

    Would this also be an issue that could have occurred?

    I do not understand what you said in the fourth option (sry not an expert but have some knowledge)

    For option number five if you mean that just putting java instead of
    "%ProgramFiles%\Java\jre7\bin\java.exe"
    I tried it and it didn't work

    Option number two:
    Do u mean like 1G?

    by the way in line 3 when it says
    CD /D
    does that mean that I should have my server in a D drive on like a CD and if that is true is there anyway 2 change that? to like a C drive?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  4. Offline

    karatetoes

    can someone please help me with this issue?
     
  5. Offline

    karatetoes

    is this thread dying?
     
  6. Offline

    jacklin213

    karatetoes you have a wrong run.bat paste this in plz
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    and every time you update bukkit remeber to rename
    craftbukkit-(the verson).jar into
    craftbukkit.jar
    every thing should work fine after
     
  7. Offline

    hahamanny

    I am also having trouble starting the server. I renamed the file. I really have no clue which code to paste. I tried all of the codes and most of them say," cannot open path specified", or ," cannot run crafbukkit.jar." Please help. I've had this issue for a long time...
     
  8. Offline

    jacklin213

    hahamanny use the code i just pasted and rename your "craftbukkit-1.2.5-R3.0" to "craftbukkit.jar"
     
  9. Offline

    ImminentFate

    if you want to assign more ram, change the (#'s)
    -Xms-####M -Xmx####M
    to whatever you want, for example:
    -Xms1024M -Xmx2048M
    another option is to replace -Xms####M with Xincgc
    -Xincgc -Xmx2048M
    this will automatically start your server with the needed amount of RAM
    if you can't get it to work yourself, you may like to try my installer. Link in signature
     
  10. Offline

    karatetoes

    did all of these
    non helped

    i forgot do i need DDR2 or DDR3 RAM in order 2 dedicate more

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  11. Offline

    ImminentFate

    you just need a 64bit pc
     
  12. Offline

    karatetoes

    I actually did try doing ur last option as well
    Also I have another question....
    I cant remember where I heard this but do I need to add another environmental variable in my computer system path
    what I mean by this is:
    1)click start menu
    2)right click computer
    3)select properties
    4)click advanced system properties on left hand menu
    5)go to advanced tab
    6)select environmental variables
    Would I need 2 change any of those?
     
  13. Offline

    ZeroZX4

    Start Bukkit
    Bukkit GUI

    make new folder for example on desktop and put to that folder all files you download

    download craftbukkit from here
    http://dl.bukkit.org/downloads/craftbukkit/view/01097_1.2.5-R2.0/


    download bukkit gui from here
    http://dev.bukkit.org/server-mods/bukkitgui/


    follow this 3 steps
    http://i.imgur.com/J9ey6.png

    and your done


    =========================================

    ( >'.')> ( >'.')> ( >'.')> BAT FILE PART <('.'< ) <('.'< ) <('.'< )

    =========================================

    but if u really need/want to stay with bat files

    make new folder for example on desktop and put to that folder all files you download

    download craftbukkit from here
    http://dl.bukkit.org/downloads/craftbukkit/view/01097_1.2.5-R2.0/

    now you rename your craftbukkit.1.2.5-R2.0.jar file to craftbukkit.jar


    here are 4 different bat files download them all and put them to same folder

    run1 java 6 32bit ( >'.')> http://www32.zippyshare.com/v/36778740/file.html
    run2 java 7 32bit ( >'.')> http://www32.zippyshare.com/v/14686885/file.html
    run3 java 6 64bit ( >'.')> http://www32.zippyshare.com/v/6449618/file.html
    run4 java 7 64bit ( >'.')> http://www32.zippyshare.com/v/58488266/file.html


    run each run file 1 by 1 for sure 1 will work for you



    and if you want to have gui but that is a plugin than download this 2 plugins and drop them to plugins folder
    http://dev.bukkit.org/server-mods/pail/
    http://dev.bukkit.org/server-mods/pailplus/ <('.'< ) not necessary


    to minimize console you may want to install this program called trayit!

    http://www.teamcti.com/trayit/trayit.htm

    just rightclick on window minimize button and choose place in system tray
    than click it again and choose tab "more"
    now check option "hide application from taskbar all the time, keep tray icon only"

    some of you may want go back to tab "basic"
    and on the bottom check option "minimize window on creation / when trayit! is started"


    and now you would only right click taskbar and choose properties
    than next to hide icons click the bottom customize


    and now just next to your bukkit server choose always show
     
  14. Offline

    ImminentFate

  15. Offline

    hahamanny

    thnx i got it. just trying to do permissions now... And i also need help with that XD thnx. If anyone could help me. With groups...
     
  16. Offline

    karatetoes

    just did 1st one
    tht one worked
    onto 2nd one

    #2 works

    #3 works

    #4 works
    now 2 try 2 dedicate ram 2 them

    omg i see what i did wrong
    ty so much
    what I did wrong was I had a winrar file and inside of that was a folder named CraftBukkit and INSIDE OF THAT was the starter and the craftbukkit.jar which prob caused the issue
    ty sooooooo much for this cuz ik i have been a pain in the a**

    omg i luv u (no homo)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
Thread Status:
Not open for further replies.

Share This Page