In the second half of last year, the company decided to invest manpower, material resources, and "follow the trend" to do big data research and apply it to subsequent projects. Therefore, we must be familiar with Java.
Let's get a Java EE development environment first. JDK and JRE are installed. In fact, JRE already exists under JDK. If it is installed on the server, you only need to install JRE, and then configure the environment variables:
New: JAVA_HOME: D: \ Java \ jdk1.7 % JAVA_HOME % \ bin;
Install Tomcat and startup. bat, shutdown. bat is normal, and then want to start and close the compressed version of Tomcat into a Windows service for processing, execute service. bat install prompts that the service is successfully created, but fails to start the service. The system log prompts:
I used to have no problem with Windows 2003 on my desktop. How can I get started with Windows on Windows? First, you can call the service normally. there is no problem with the configuration of bat, that is, the environment variable. Compared with the two operating systems, it seems that the most likely problem is the permission issue during installation. Uninstall the installed service. bat remove, and then run cmd.exe as an administrator. Switch to the directory where service. bat is located and run service. bat install to reinstall the Tomcat service. HoHo, which can be started and disabled normally.
Because it is a development environment, we can configure a Super User admin to manage Tomcat through "http: // localhost: 8080. Go to the conf folder under the Tomcat root directory and open "tomcat-users.xml" for editing:
After restarting Tomcat, you can use admin to manage Tomcat.