Gentlemen!
I have a .bat file that I use to start Apache Tomcat from my application in debug mode. However when running this file in CMD, the first thing displayed is the following message:
''╗┐' is not recognized as an internal command or external, an operable program or a batch file.
I emphasize that after this, the script works normally, but I wonder if anyone has ever had something similar or knows a solution. I had tried to redo it, but the error persists.
The following is the content of the file:
@echo off
echo.
rd /s /q C:\sas\Instances\sa7\tomcat\work\
rd /s /q C:\sas\Instances\sa7\tomcat\conf\Catalina\
del /s /q C:\sas\Instances\sa7\tomcat\logs\*
del /s /q C:\sas\Instances\sa7\tomcat\temp\*
del /s /q C:\sas\Instances\sa7\tomcat\webapps\sa\WEB-INF\web.xml.template
del /s /q C:\sas\Instances\sa7\tomcat\webapps\sa\META-INF\context.xml.template
echo.
xcopy /s /q /y C:\sas\instances\sa7\runtime\* C:\sas\instances\sa7\tomcat\webapps\sa\
echo.
set CATALINA_HOME=C:\sas\instances\Sa7\tomcat
set CATALINA_BASE=C:\sas\instances\Sa7\tomcat
set JAVA_HOME=C:\sas\java\jdk7
set INSTANCE=C:\sas\instances\Sa7
set CATALINA_OPTS=-Xms256m -Xmx512m -XX:MaxPermSize=256m
set CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF-8
set CATALINA_OPTS=%CATALINA_OPTS% -Djava.awt.headless=false
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.port=9014
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.ssl=false
set CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false
set CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
set CATALINA_OPTS=%CATALINA_OPTS% -Duser.timezone=America/Sao_Paulo
set CATALINA_OPTS=%CATALINA_OPTS% -Duser.language=pt
set CATALINA_OPTS=%CATALINA_OPTS% -Duser.region=BR
set CATALINA_OPTS=%CATALINA_OPTS% -Dsun.java2d.noddraw=true
set CATALINA_OPTS=%CATALINA_OPTS% -Dsun.java2d.d3d=false
set CATALINA_OPTS=%CATALINA_OPTS% -Xdebug
set CATALINA_OPTS=%CATALINA_OPTS% -Xrunjdwp:transport=dt_socket,address=8990,server=y,suspend=n
%CATALINA_HOME%\bin\startup.bat