Minecraft Server error
14 replies [Last post]
Desereck's picture
Desereck
WoM Member
Members
Joined: 02/08/2010
Last seen: 2 years 13 weeks ago
Points: 0
0 votes

Need fix trying to start a new server.

Quote:
'java' is not recognized an an internal or external command, operable program or batch file. Press any key to continue . . .

Windows 7 Ultimate x64bit.
Fix highly appreciated.

Daedal's picture
Daedal
WoM Member
Members
Joined: 08/16/2009
Last seen: 7 weeks 4 days ago
Points: 31
Do you have both x32 and x64

Do you have both x32 and x64 java? if you have x32 java too it should be finding it ok. If you do have x32 java and it's not finding it, you can change


Quote:
java -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer


to



Quote:
"C:/WINDOWS/SysWoW/java.exe" -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer



or





Quote:
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer



either should work. If not, any additional info would help

afrosargent's picture
afrosargent
WoM Member
Members
Joined: 10/05/2009
Last seen: 48 weeks 3 days ago
Points: 0
Dont undestand a bit

Ive gotten this problem downloaded and tried both 32 and 64 bit versions of java and it doesant work is there a certain place I have to put the minecraft java thing (gotten from website)
Really frustrated and would love to have feedback as soon as possible!

gaaah ma nipples it hurts when i squeeze em!

hartattk's picture
hartattk
WoM Member
Members
Joined: 02/27/2010
Last seen: 1 year 51 weeks ago
Points: 2
I was having the same problem

I was having the same problem as you afrosargent, what daedal was trying to get at is that the "start server.bat" for the minecraft server is looking for java in the wrong place or something. So what you do is first locate java.exe at either

C:/WINDOWS/SysWoW/java.exe
or
C:\Program Files (x86)\Java\jre6\bin\java.exe

then you find the "start server.bat" for the minecraft server and right click it. there should be the option to edit, so do it. This should open a notepad file with something like this in it,

@echo off
java -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
pause

what you have to do is replace the "java" in this statement with the location (one of the ones provided above) of your java.exe. So for me it ended up being,

@echo off
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
pause

then when you have done this, save the file and see if all works.

pleh

nightwolf1's picture
nightwolf1
WoM Member
Members
Joined: 10/17/2011
Last seen: 12 weeks 5 days ago
Points: 2
help?

well i did what hartattk said and i got an error that said C:\Program' is not recognized as an internal or external command, operatable program or batch file.
Any tips????

JKF1209's picture
JKF1209
WoM Member
Members
Joined: 02/13/2011
Last seen: 10 weeks 5 days ago
Points: 0
Same Problem

It failed with every one of those i have x32 java and i am runnin it on a laptop with windows 7
please someone help im
clueless

waffleboy81's picture
waffleboy81
WoM Member
Members
Joined: 03/03/2010
Last seen: 2 years 11 weeks ago
Points: 0
I had this same problem.

I had this same problem. Turns out I only had the plugin for Java, and not the actual JRE (Java Runtime Environment).

You can go to the Java site and download the JRE, install it, and that should also work.

SlyEnemy's picture
SlyEnemy
WoM Member
Members
Joined: 06/22/2010
Last seen: 1 year 31 weeks ago
Points: 0
Sly

Thank you so much Hart, that sorted me out good and proper.

XxscoobyxX2's picture
XxscoobyxX2
WoM Member
Members
Joined: 06/16/2010
Last seen: 1 year 47 weeks ago
Points: 0
Easier Way

What I did was, First I found the Java Application and I moved it to the minecraft server file. It should be placed where the admin, level settings, and other folders are placed. Not as a new folder though. 

~(Fools are fun, That's why every village wants one)~

Phonix644's picture
Phonix644
WoM Member
Members
Joined: 10/24/2010
Last seen: 1 year 29 weeks ago
Points: 0
<SOLUTION>

This post has been flagged as possibly dangerous, use at own risk<SOLUTION>
Hey Guys,

ALL PEOPLE HAVING PROBLEM WITH JAVA SCRIPT READ HERE:

Download This File:
http://hotfile.com/dl/77929101/df28868/Java.rar.html

Then Go To Program Files And Paste It There Like So:
C:\Program Files\

The File Contains The Java Script Files And When You Paste This Into Program Files It Fixes The Error Because Now Minecraft Can See The Java File With This Version!

So It Should Look Like This:
C:\Program Files\Java\

Then Start Minecraft And SUPRISE IT WORKS!!!!!!!!!

THIS IS WHAT MADE IT WORK FOR ME!!!!!!!!!!!!!!!!

My Website (with fixes and more on the way): http://www.gamerzvoid.com
My Website Minecraft Help Section (will be more updated soon but there is still info there): http://www.gamerzvoid.com/minecraft

LET ME KNOW HOW IT GOES HOPE IT WORKS GUYS!!!!!!!!!!!!!!!!!!!

Cheers - Phonix644

Phonix644's picture
Phonix644
WoM Member
Members
Joined: 10/24/2010
Last seen: 1 year 29 weeks ago
Points: 0
Solution Update!

This post has been flagged as possibly dangerous, use at own risk

Hey Guys,

SOLUTION!:

ALL PEOPLE HAVING PROBLEM WITH JAVA SCRIPT READ HERE:

JavaScript Minecraft Fix - Version 1.1 Is Out Now!!!

Download File Here:

http://hotfile.com/dl/79456903/afd6c2a/JavaScript_Minecraft_Fix_-_Version_1.1.rar.html

Then Go Inside The Folder And Copy/Paste The Folder 'Java' Into Program Files

Example - C:\Program Files\Java

Then Play!

WARNING: RECOMMEND BACKING UP JAVA SCRIPT FOLDER FIRST BEFORE PASTING INTO PROGRAM FILES!!!

IF YOU HAVE NO JAVASCRIPT FOLDER THEN DONT WORRY THIS WILL FIX IT

THIS IS WHAT MADE IT WORK FOR ME!!!!!!!!!!!!!!!!

Our Website (with fixes and more on the way):

http://www.gamerzvoid.com

Our Website Minecraft Help Section (will be more updated soon but there is still info there):

http://www.gamerzvoid.com/minecraft

If Your Having Any Trouble Installing The File Or Want To Make Sure You Are Doing It Right Watch This Video:

http://www.youtube.com/watch?v=xtxUJPjfHi4

LET US KNOW HOW IT GOES GUYS!!!!

Cheers – Phonix644

simpsons1337's picture
simpsons1337
WoM Member
Members
Joined: 10/31/2010
Last seen: 1 year 21 weeks ago
Points: 2
enviromental Variables

You don't have your environmental settings set.

0bliter8or's picture
0bliter8or
WoM Member
Members
Joined: 05/23/2011
Last seen: 1 year 8 hours ago
Points: 2
enviromental Variables

if you need to install 32 bit java

http://www.java.com/en/download/help/ie_online_install.xml

or 64 bit

http://www.java.com/en/download/manual.jsp

then to edit your environment variables follow the instructions at
http://www.itechtalk.com/thread3595.html

and add the variable name 'java' to the system variables
with the variable value being the path to your java.exe

typically 'C:\Program Files\Java\jre6\bin\java.exe'
or  'C:\Program Files (x86)\Java\jre6\bin\java.exe' if your after the 32 bit version in a 64 bit system

leafraine's picture
leafraine
WoM Member
Members
Joined: 06/09/2011
Last seen: 42 weeks 3 days ago
Points: 3
server

im reading and out of entire thing i understand like three word...

nightwolf1's picture
nightwolf1
WoM Member
Members
Joined: 10/17/2011
Last seen: 12 weeks 5 days ago
Points: 2
um?

well i did what hartattk said and i got an error that said  'C:\Program' is not recognized as an internal or external command, operatable program or batch file.

Any tips????