Starting my Server

Discussion in 'Bukkit Help' started by *Insert Name Here*, May 31, 2012.

Thread Status:
Not open for further replies.
  1. When I say "starting my server", I mean starting my server. I did the whole thing where you save the code as RUN.bat and etc., then I clicked on it, and it said:

    'java' is not recognized as an internal or external command, operable program, or batch file.

    I do have Java. For some reason I have 32-bit on a 64-bit computer, will that affect it? By the way, the code I use is:
    Code:
    java -Xms512M -Xmx1G -jar craftbukkit.jar nogui
    PAUSE
    Other info would be that my computer is Windows 7, it's 64-bit, and the code I use is one that someone here on the Bukkit Forums gave me.

    I asked a computer nerd at my school and he said I could try moving my Java file thingy to the same folder as my RUN.bat file. Problem being that it's not a file. I searched for it in the Start Menu, and all that came up was my Java control panel thing.

    I'd like an answer as soon as possible! Thanks in advance!
     
  2. Offline

    BobbyD441

  3. This is not the code you need if you want help put theis code
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE

    In the run.bat i if you need more help add my work skype martin212854 from united kingdom

    Or if that code not work put thisone

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    Nit look the same but it is not !!
    Hope it will work
    Come join my Server 82.30.115.71:25515
     
  4. Offline

    jududdar

    There is really no need in becoming a batch wizard to accomplish this. Your best bet would be to uninstall 32-bit Java (unless another application absolutely needs it), then install newest 64-bit Java (Java 7 update 5 I think). Instead of calling Java using its directory, you can then add it to your Windows PATH like so:

    Start > Right Click "Computer" > Properties
    The "System" window comes up, Click "Advanced system settings"
    With the "System Properties" window up, click the "Advanced" tab, then the "Environment Variables" button
    In the second scroll box titled "System variables" scroll down to "Path" and click "Edit..."
    In the box that pops up, append the path to java to the long line that's already there, PRECEDED by a semicolon (no spaces). Do not delete anything in this line, seriously.

    What you type in this line will probably be: ";C:\Program Files\Java\jre7\bin\" minus the quotes.

    The only reason I say to add it this way, is that if you decide to run anything else with Java, it's already in your path and you don't have to type all the paths into your launcher file. Here's my launcher.bat:

    Echo off
    java -server -Xincgc -Xmx6G -jar craftbukkit.jar
    pause

    The -Xmx6G line can vary - I put 6G for 6 gigs, but you can alter accordingly.
     
  5. Jududdar well but this is almost the longest and hardest way of doing the server and it don't need work i know this because i did this that way and it did not work at all you realy don't need do this that way.

    Suorce my head 3 decreas programing,java engeniering and software designer
     
  6. Offline

    yurface66

    This took a while but after using your launcher.bat note pad, it worked for me, thx
     
Thread Status:
Not open for further replies.

Share This Page