Why can't I get a 1.6.4 Minecraft Bukkit Server to launch? [closed]

I followed a lot of tutorials, including Bukkit.org's steps like below:

  • 1.Create a folder with your choice of names
  • 2.Download the latest recommended build CraftBukkit.Jar
  • 3.Place the Craftbukkit1.6.4 jar from step 2 in your folder
  • 4.Rename CraftBukkit1.6.4-R2.0.Jar To CraftBukkit.jar
  • 5.Open Notepad and copy and paste java -Xmx1024M -jar craftbukkit.jar -o true PAUSE
  • 6.Save the Notepad text you just wrote and click save-as (Name).Bat (I did run.bat originally but it still never worked)
  • 7.Double-Click Run.bat or (Name).bat and it should load your world

*This is where it failed to load anything. The problem in every set of steps I try comes up when trying to run the run.bat file. No matter what I do I always get this: it says Java is not recognized

Does anyone have any idea why this happens, or how IO can fix it?


Solution 1:

The simplest thing to do is install Java again (java.com/getjava‎), then try again.

If this does not work, here is how to configure the server to use the same Java as the Minecraft client:

  1. Open the Minecraft Launcher
  2. Click on 'Edit Profile'
  3. Make sure 'Launcher Visibility' is set to 'Keep the lanucher open'
  4. Click 'Save Profile'
  5. Click 'Play' and wait for the title screen to appear
  6. In the Launcher window (which should be still open), switch to 'Development Console' tab
  7. Search in the last few lines the following:

    [08:54:24 INFO]: Launching in C:\Users\Ruehl\AppData\Roaming\.minecraft [08:54:24 INFO]: Half command: C:\Program Files\Java\jre7\bin\javaw.exe -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G ...(snip)... \.minecraft\versions\1.7.4\1.7.4.jar net.minecraft.client.main.Main

  8. Copy the part on the Half command: line before javaw.exe - in my case it is C:\Program Files\Java\jre7\bin\
  9. Put that path in the run.bat file before java
  10. (optional) Change 'Launcher Visibility' back to what it was