J2EE Platform Construction

Source: Internet
Author: User

To build a J2EE-based project, you must first build a correct platform. Generally, JDK, Eclipse, MySQL (database), and Tomcat (server) are used at least ). Now I will share with you the process of building this platform, hoping to help you.

  

1. install and configure JDK
  1.  

    When JDK is installed in the installation directory, two installation prompts are displayed. JDK is installed for the first time, and JRE is installed for the second time. We recommend that you install both of them in different folders in the same Java folder. (JDK and JRE cannot all be installed in the root directory of the Java folder. errors may occur when they are installed in the same folder)

  2.  

    1: To install JDK and select a directory at will, you only need to modify the directory before the default installation directory \ Java.

    2: Install JRE → change → the directory before \ Java is the same as the JDK directory.

    NOTE: If no installation directory is required, you can set all the default settings. You do not need to make any changes.

  3.  

    After JDK is installed, configure the environment variable computer → properties → advanced system settings → advanced → environment variable

  4.  

    System variable → create java_home variable.

    Enter the JDK installation directory (c: \ Program Files \ Java \ jdk1.6.0 _ 43) as the variable value)

  5.  

    System variable → search for PATH variable → Edit

    Enter % java_home % \ bin; % java_home % \ JRE \ bin at the end of the variable value;

    (Note that there is no; number at the end of the variable value of the original path. If not, first enter; number and then enter the above Code)

  6.  

    System variable → new classpath variable

    Enter the variable value.; % java_home % \ Lib \ tools. Jar (note the first one)

    System variable configuration complete

      1.  

        Check whether the configuration is successful. Run CMD and enter Java-version (there is a space between Java and-version)

        If the version information is displayed, the installation and configuration are successful.

        Ii. installation and configuration of tomcat7.0.22

        1. Download tomcat7.0.22: http://tomcat.apache.org/download-70.cgi

        2. Add system environment variables. Choose my computer> Properties> advanced system Settings> environment variables (same as above)

        (1) variable name: catalina_base variable value: D: \ Program Files \ apache-Tomcat-7.0.22 (directory decompressed by Tomcat)

        (2) variable name: catalina_home; variable value: D: \ Program Files \ apache-Tomcat-7.0.22

        (3) variable name: catalina_tmpdir variable value: D: \ Program Files \ apache-Tomcat-7.0.22 \ Temp

        (4) variable name: PATH variable value: D: \ Program Files \ apache-Tomcat-7.0.22 \ bin

        3. Run tomcat7.0.22, "Start", "run", Enter cmd, and enter startup in the command prompt. bat, then the Tomcat command box will pop up and output the startup log. Open the browser and enter http: // localhost: 8080/. If you enter the Tomcat welcome page, congratulations, the configuration is successful.

        4. Configure Tomcat: window-preferences

        Select Server-runtime environments-click Add on the right

        Select Apache Tomcat v6.0 and click Next.

        Then, Click Browse to select the path to which your Tomcat is extracted, and select under the root directory, for example, D: \ apache-Tomcat-6.0.37; select your JDK in JRE, you can click installedjres to configure JDK

        Click installed jres, and then click Add

        The default standard VM is available, and then click Next

        Click directory to select the local JDK installation path, and then click Finish.

        III. For installation configuration and connection of eclipse and MySQL, please stay tuned.

         

         

         

         

         

         

J2EE Platform Construction

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.