Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug JSP programs. --Baidu Encyclopedia
So our small project has to be able to run in a tomact environment, but when you manually click on the startup item, it just flashes through:
Later access to information learned: Tomact is a lightweight container, he belongs to the third-party software, so although good, but still have to be in the Java environment to take effect, DOS Windows run Startup.bat, found missing java_home, figure:
Java_home point to the JDK installation path, such as my installation path "C:\Program files\java\jdk1.8.0_51", then I just need to let the Java_home value for this path can be, the diagram:
In this way, the Java environment is built successfully and the results are:
Of course, the goal of setting the environment variable is to get it to find the path to the JDK, and we can write this in the Startup.bat directly:
The advantage of setting environment variables is that as long as the Java environment is required to take effect, if written into code, then the benefit is only tomact yourself! No matter what method you use, just be able to find the JDK, so you can run successfully.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Tomact Operating Environment Construction