Home > Back-end >  In the CMD can't start the tomcat, but in the bin directory of the startup. Bat can start
In the CMD can't start the tomcat, but in the bin directory of the startup. Bat can start

Time:09-26


As shown, yesterday I reset the computer installed the Java web need to use the software, configuration, input startup in the CMD box yesterday. The bat is able to start, today in the CMD box input startup. The bat a startup, bat not internal or external command,,, but under the bin directory of the tomcat double-click on startup. The bat is can start
This kind of situation to do?
Can also access localhost: 8080

CodePudding user response:

To switch to the tomcat's bin directory or to configure tomcat path environment variable

CodePudding user response:

refer to the original poster wy0622ujjA response:
, as shown in the figure yesterday I reset the computer installed the Java web need to use the software, configuration, input startup in the CMD box yesterday. The bat is able to start, today in the CMD box input startup. The bat a startup, bat not internal or external command,,, but under the bin directory of the tomcat double-click on startup. The bat is can start
This kind of situation to do?
Can also access localhost: 8080


Your tomcat path is not added to the system path, certainly can't find the startup. Bat, this is the basis of the Windows common sense,

CodePudding user response:

refer to the second floor qq_39936465 response:
Quote: refer to the original poster wy0622ujjA response:

As shown, yesterday I reset the computer installed the Java web need to use the software, configuration, input startup in the CMD box yesterday. The bat is able to start, today in the CMD box input startup. The bat a startup, bat not internal or external command,,, but under the bin directory of the tomcat double-click on startup. The bat is can start
This kind of situation to do?
Can also access localhost: 8080


You tomcat path is not added to the system path, certainly can't find the startup. Bat, this is the basis of the Windows common sense,

Yeah yeah really don't know what I write down my environment variable configuration can help me have a look at what's the problem?
The CATALINA_HOME C: \ Users \ wang, Downloads, tomcat, apache tomcat - 7.0.103 - Windows - x64 \ apache tomcat -- 7.0.103
CLASSPATH.; The % JAVA_HOME % \ lib \ dt. Jar; % JAVA_HOME % \ lib \ tools. Jar; The CATALINA_HOME % % \ lib \ servlet - API jar;
The Path

CodePudding user response:

reference 1/f, el alamein regretless reply:
to switch to the tomcat's bin directory or to configure tomcat path environment variable in the

I write down my environment variable configuration can help me have a look at what's the problem?
The CATALINA_HOME C: \ Users \ wang, Downloads, tomcat, apache tomcat - 7.0.103 - Windows - x64 \ apache tomcat -- 7.0.103
CLASSPATH.; The % JAVA_HOME % \ lib \ dt. Jar; % JAVA_HOME % \ lib \ tools. Jar; The CATALINA_HOME % % \ lib \ servlet - API jar;
The Path
Help me have a look at it. Thanks

CodePudding user response:

reference wy0622ujjA reply: 3/f
Quote: refer to the second floor qq_39936465 response:

The
Quote: refer to the original poster wy0622ujjA response:

As shown, yesterday I reset the computer installed the Java web need to use the software, configuration, input startup in the CMD box yesterday. The bat is able to start, today in the CMD box input startup. The bat a startup, bat not internal or external command,,, but under the bin directory of the tomcat double-click on startup. The bat is can start
This kind of situation to do?
Can also access localhost: 8080


You tomcat path is not added to the system path, certainly can't find the startup. Bat, this is the basis of the Windows common sense,

Yeah yeah really don't know what I write down my environment variable configuration can help me have a look at what's the problem?
The CATALINA_HOME C: \ Users \ wang, Downloads, tomcat, apache tomcat - 7.0.103 - Windows - x64 \ apache tomcat -- 7.0.103
CLASSPATH.; The % JAVA_HOME % \ lib \ dt. Jar; % JAVA_HOME % \ lib \ tools. Jar; The CATALINA_HOME % % \ lib \ servlet - API jar;
The Path


Just the path of the Java configuration, you need to configure tomcat path, you perform is tomcat startup programs, tomcat initiator to the tomcat installation directory folder, but you didn't set in the path, so you can only in tomcat directory, to execute the initiator, want to anywhere can perform tomcat start the program, you need to add tomcat folder to path in the system,

CodePudding user response:

Reference
the CATALINA_HOME C: \ Users \ wang, Downloads, tomcat, apache tomcat - 7.0.103 - Windows - x64 \ apache tomcat -- 7.0.103
CLASSPATH.; The % JAVA_HOME % \ lib \ dt. Jar; % JAVA_HOME % \ lib \ tools. Jar; The CATALINA_HOME % % \ lib \ servlet - API jar;
The Path


You are now inside a given configuration is not clearly given the content of the Path,
The CATALINA_HOME is equivalent to a definition, defines the path where you tomcat,
The CLASSPATH file defines the use of resources,
Bin Path should be defined in the Path environment variable, if you can run the day before, the second day can't run is likely to be the following reasons,
(1) the day before you are using the command line mode set Path="XXX" additional environment variables, reboot the system at this time,
You can add the following to the Path pilot a try,
The CATALINA_HOME % % \ bin

CodePudding user response:

Search for "Tomcat" how to configure the environment variables, and actually using the eclipse development project, don't need to configure the environment variables, will be deployed to Tomcat eclipse in line
  • Related