When I start the start server.bat file, CMD says that Java is not recognised as in internal or external something... I have tried a few things that were posted on the forum, but that didn't work.. Need help?
Because its trying to find java but its looking in the wrong place edit the run.bat by right clicking then editing it to were your java is, it tells you what to do. if you have Windows 7 x64 then just replace it with mine!
@echo off
rem If you have a custom path to java, change auto below to
rem point to your java.exe file
rem eg: set JAVA6="C:\MyPath\bin\java.exe"
set JAVA6="auto"
set X86="%ProgramFiles(x86)%"
if %JAVA6% == "auto" (
echo Autodetecting java
if %X86% NEQ "" (
echo Testing x86 folder
for /D %%j in ("%ProgramFiles(x86)%\jre6*" "%ProgramFiles(x86)%\jre1.6.*" "%ProgramFiles(x86)%\jdk1.6.*" "%ProgramFiles(x86)%\Java\jre6*" "%ProgramFiles(x86)%\Java\jre1.6.*" "%ProgramFiles(x86)%\Java\jdk1.6.*") do (
echo Checking %%j folder
if exist "%%j\bin\java.exe" (
echo Found java in %%j folder
set JAVA6="%%j\bin\java.exe"
)
)
) else (
echo Testing default folder
if defined ProgramFiles (
for /D %%j in ("%ProgramFiles%\jre6*" "%ProgramFiles%\jre1.6.*" "%ProgramFiles%\jdk1.6.*" "%ProgramFiles%\Java\jre6*" "%ProgramFiles%\Java\jre1.6.*" "%ProgramFiles%\Java\jdk1.6.*") do (
echo Checking %%j folder
if exist "%%j\bin\java.exe" (
echo Found java in %%j folder
set JAVA6="%%j\bin\java.exe"
)
)
)
)
)
:rerun
if %JAVA6% == "auto" (
echo ERROR: 32-bit Java 6 not found!
echo Please download and install from java.com
pause
exit
) else (
echo Starting java from %JAVA6%
%JAVA6% -classpath skin;lib\jinput.jar;lib\lwjgl.jar;lib\lwjgl_util.jar;lib\wom.jar;lib\minecraft.jar -Djava.library.path=native\windows -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx800M Main
if errorlevel 11 (
if not exist lib\minecraft.jar (
echo ========================================
echo Warning: lib\minecraft.jar not found.
echo Did you read instructions / download it?
echo ========================================
)
echo ERROR: Failed to run minecraft
echo JAVA6=%JAVA6%
pause
exit
)
if errorlevel 10 (
goto rerun
)
if errorlevel 1 (
if not exist lib\minecraft.jar (
echo ========================================
echo Warning: lib\minecraft.jar not found.
echo Did you read instructions / download it?
echo ========================================
)
echo ERROR: Failed to run minecraft
echo JAVA6=%JAVA6%
pause
exit
)
)
its saying that it cant find java. its eather its not insalled or it cant find where its been installed to. remove all of java from ur computer then reinstall this 1: http://www.java.com/en/ then cick free java download thrn finally click agree and download. this will download the recommanded java for ur computer. if ur still geting the not reconized message do the following:
1. right click "computer" and then click "properties"
2. on the left side bar click "advanced system settings"
3. click "Environment variables" near the bottom of the page.
4. under "system variables" find " classpath"
5. select it and click "edit"
6. copy and paste the following if ur computer is "64 bit" then copy and paste that. if its "32 bit" do the same.
(64 bit): C:\Program Files (x86)\Java\jre6\bin
(32 bit): C:\Program Files\Java\jre6\bin
7. click ok.
8. find the variable "path" and repeat steps 5-7
9. once done click apply.
10. open "cmd" and type "java" into it. the error should be fixed.
11. if u need help for enabling it for ur browser see java help: http://java.com/en/download/help/enable_browser.xml
if ur issue is still not resolved then try searching it on the web or in youtube. theres always answers :)






WoM Member
Me too, I'm really down about the fact that I can't play Minecraft because Java is malfunctioning. I can't find it anywhere on my PC, so I cannot delete it to re-install it. When I try to install it anyways, it says i already have Java (even though Java doesn't work) and asks me if i want to re-install it. I say yes, but then it wants me to find the Java folder that held all the Java stuff. But it doesn't exist on my computer. I used to have Java but i deleted it, maybe I didn't do it right and it messed up ... Please help :(