본문 바로가기
  • Welcome J-Kyu Tstory
[Problem&Solve]

[톰캣] startup.bat 바로 꺼짐

by regularity 2022. 3. 18.
728x90

▶실행시 cmd 창 바로 꺼짐 현상

▶환경변수 설정이 문제 였던것으로 판단 또는 

server.xml

 

[톰캣] startup.bat

▶안정성 (호환)문제때문에 9버전으로

 

▶기존 환경변수 설정

<환경변수>
CLASSPATH

%JAVA_HOME%\lib;.;%CATALINA_HOME%\lib;
========================
JAVA_HOME

C:\Program Files\Java\jdk1.8.0_321
==========================
JRE_HOME

C:\Program Files\Java\jre1.8.0_321
==========================

Tomcat_Home
C:\Users\hijic\Desktop\apache\apache-tomcat-9.0.52-windows-x64\apache-tomcat-9.0.52

===========================
Path
C:\Program Files\Amazon Corretto\jdk11.0.14_10\bin
C:\Program Files\Java\jdk1.8.0_144\bin
%CATALINA_HOME%\bin;


"%CATALINA_HOME%\bin;";C:\Program Files\Java\jdk1.8.0_321\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\Bandizip\;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\plugin\;

 

▶변경 후

[톰캣] startup.bat
[톰캣] startup.bat
[톰캣] startup.bat

 

======================환경 변수 [시스템]========================

Apache_Home

C:\Users\aaa\Desktop\Spring\httpd-2.4.53-win64-VS16\Apache24

 

 

CATALINA_BASE

C:\Users\aaa\Desktop\Spring\apache-tomcat-9.0.60

 

CATALINA_HOME

C:\Users\aaa\Desktop\Spring\apache-tomcat-9.0.60

 

CATALINA_TMPDIR

C:\Users\aaa\Desktop\Spring\apache-tomcat-9.0.60\temp

 

CLASSPATH

%JAVA_HOME%\lib;.;%CATALINA_HOME%\lib;

 

JAVA_HOME

C:\Program Files\Java\jdk1.8.0_321

 

JRE_HOME

C:\Program Files\Java\jre1.8.0_321

 

Path

"%CATALINA_HOME%\bin;.;C:\Program Files\Java\jdk1.8.0_321\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\Bandizip\;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\;C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\plugin\;

 

Tomcat_Home

C:\Users\aaa\Desktop\Spring\apache-tomcat-9.0.60

728x90

댓글