When using tomcat, when you click startup.bat, the dos command line crashes.

Reason: When starting tomcat, environment variables and configuration information need to be read, but these cannot be read, so there will be a flashback.

Scenario: Configuring Environment Variables and Information


step1: Click on startup.bat to edit at the beginning of the file

           SET JAVA_HOME=D:\Program Files\Java\jdk1.7.0_79 (location of jdk)
           SET TOMCATE_HOME=D:\Workspaces\apache-tomcat-5.5.33 (location of tomcat)

step2: Click shutdown.bat to edit at the beginning of the file

           SET JAVA_HOME=D:\Program Files\Java\jdk1.7.0_79 (location of jdk)
           SET TOMCATE_HOME=D:\Workspaces\apache-tomcat-5.5.33 (location of tomcat)

keep.

step3: start startup.bat  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325579591&siteId=291194637