win8.1 + tomcat8 + JDK1.8 configuration Experience

Source: Internet
Author: User

Recently need to develop the Javaweb project on the computer, so the predecessor task is to configure the development environment, but encountered a variety of problems, consulted the major gods, and finally in my insistence or done, wow haha ...

My computer is win8.1 system, according to the habit of the past must be configured JDK1.7+TOMCAT7, but because the work requires the computer to install the JDK1.8, total can not be installed 2 JDK, install 2 can also, but the configuration environment variable will have problems, total can not configure 2 paths it. On the use of JDK1.8+TOMCAT7, I use the decompression version of TOMCAT7, so the problem came, no matter how the configuration, there are problems:

Double-click Startup.bat, the console window flashes past, double-click Tomcat7w.exe will pop up a dialog box, prompting unable to open the service ' TOMCAT7 '.

The final solution is as follows, JDK1.8+TOMCAT7, need to change to JDK1.8+TOMCAT8, the first need to configure environment variables:

Java_home C:\Program files\java\jdk1.8.0_05 Note the following do not take a semicolon;

The following is the Tomcat8 decompression path, followed by no semicolon;

Tomcat_home C:\Alex_work\apache-tomcat-8.0.23-windows-x64\apache-tomcat-8.0.23

Catalina_base C:\Alex_work\apache-tomcat-8.0.23-windows-x64\apache-tomcat-8.0.23

Catalina_home C:\Alex_work\apache-tomcat-8.0.23-windows-x64\apache-tomcat-8.0.23

Open a command-line prompt window, Enter the Tomcat installation directory, enter the bin directory, enter: Service.bat install

After carriage return as:



This time again double-click Tomcat8w.exe will not pop up the prompt dialog box, said God Horse service is not available, and then will pop up this window:


Click the Start button to launch the TOMCAT8, then open the browser input http://localhost:8080/, as our dear Fat Cat came out:


And then we go back and double-click the Startup.bat, is not the same as a female ghost floating on No shadow of the control window is no longer floating,


hahaha, actually is not very simple ah? And you'll be happy to hit the code.

win8.1 + tomcat8 + JDK1.8 configuration Experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.