I downloaded new java6u3 to get my server compiler running and it worked but when i went to start my server i got this error
'JAVA' is not recognized as an internal or external command,
operable program or batch file.
how should i fix it?
From the wording of the error, I'll assume that you are using Windows.
In order for the Command Line interpreter to know where to find java.exe, its containing folder needs to be on your systems PATH environment variable.
Hold the windows key and press pause/break
In the dialog that appears, select the advanced tab and click on the "environment variables" button
Under the heading system variables, select new.
In the name field, type JAVA_HOME
in the value field, type (including quotes) "C:\Program Files\Java\jdk1.6_03"
Select the PATH variable and click the edit button
add the following on to the end of the existing content (including the semicolon) ;%JAVA_HOME%\bin
Click Ok on all dialogs
open a new command window
the java command should now function.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.