You are probably tripping over this problem: http://wiki.jboss.org/wiki/Wiki.jsp?page=FindstrCommandNotFound
If you cannot find findstr.exe, then you can safely comment out those two lines:
rem "%JAVA%" -version 2>&1 | findstr /I hotspot > nul
rem if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
One more thing. You never said that you set JAVA_HOME. Do you have it set, and if so, what to?
Thanks, I solved the problem. Something wrong with the JAVA_HOME set up.