My Java Learning Notes-development environment building

Source: Internet
Author: User
Tags tomcat server apache tomcat

Start learning java~

First, Introduction to Java

The Java programming language is a simple, object-oriented, distributed, interpreted, robust, secure, system-independent, portable, high-performance, multithreaded, and dynamic language. Java consists of three systems:
    • javase (J2SE) (JAVA2 Platform Standards Edition,java Platform Standard Edition)
    • javaee (EE) (Java 2 platform,enterprise Edition,java Platform Enterprise Edition)
    • javame (J2ME) (Java 2 Platform Micro Edition,java Platform mini version).
Java terminology: JDK (Java development Kit): Software JRE used by programmers writing Java programs (Java Runtime Environment): Software server JRE (Java) used by users running Java programs SE runtime Environment): Java Runtime SDK (software Development kit) used by the server: Software Development Kit, used in Java to describe Jdkdao between 1998 ~2006 years (Data Access Object): Data access interface, data access, as the name implies is dealing with the database MVC (Model View Controller): Models-View-controllers (Controller) abbreviation, a software design model For organizing code with a separate approach to business logic and data display II. development environment setup The development environment I chose is JDK 9 + my Eclipse + Tomcat 91.JDK installation and installation steps See: http://www.runoob.com/java/ Java-environment-setup.html2.ide Installation IDE selected my Eclipse official: http://www.myeclipsecn.com/download/, I used a cracked version to download cracked version, After decompression run EXE file for installation, do not run immediately after installation, follow the activation steps to activate, open MyEclipse, in the menu myeclipse--> Subscription View activation information in information note: The installation path does not appear in Chinese

3. Tomcat Installation

Apache Tomcat is a popular Web application server, the 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. Equivalent to IIS under Windows.

Official: http://tomcat.apache.org/

The version of Tomcat is to be adapted to the version of the installed JDK, and the corresponding relationship is:

The download link of the official website does the comparison rotten, need to download the file in http://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.2/bin/

There are two ways to install Tomcat: 1. Normal installation version (EXE file) 2. Unzip the installation version (zip file). Both installations are the same, except that there are some interfaces in the normal installation that provide quick settings for Tomcat, and a normal installation will register Tomcat as a system service.

I am using the decompression version, after decompression configuration environment variables:

Variable name: catalina_home

Variable value: your Tomcat placement path

After the configuration, double-click the Run Bin folder under the Startup.bat file, if the boot does not move or the console page disappears immediately, indicating that the Tomcat configuration is not found in the JDK or the wrong version, unable to run. If a large stack of messages appears, the configuration is successful

Run Tomcat9w.exe under the Bin folder, if prompted unable to open the service ' tomcat9 ', need to open cmd, enter the Tomcat installation directory, enter the bin directory, enter Service.bat install

Enter http://localhost:8080 in the browser address bar, if you see the kitten's page, the configuration is successful, if it is not possible that the port is occupied, you can try to open the Server.xml file under the Conf folder in the Tomcat installation directory, modify the configuration port

4. Configure MyEclipse

Because I installed a JDK version of 9, I need to install the plugin, in my eclipse, choose Help---eclipse Marketplace for plug-in installation

My Java Learning Notes-development environment building

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.