My journey to Java first lesson development environment preparation

Source: Internet
Author: User
Tags tomcat server java se

1. JDK

The JDK (java development Kit) is the Java language Software Development Kit (SDK).
SE (j2se), Standard edition, is a version we typically use, starting with JDK 5.0 and renaming Java Se. ee, Enterprise edition, Business edition, uses this JDK to develop the Java EE application, starting with JDK 5.0, and renaming it to the Same. ME (j2me), micro edition, primarily for Java applications on mobile devices, embedded devices, starting with JDK 5.0, renamed Java ME.
If you do not have a jdk, you cannot compile the Java program, and if you want to run only Java programs, Make sure that the appropriate JRE is Installed. JRE (java Runtime Environment,java runtime environment), A collection of environments necessary to run Java programs, including the JVM standard implementation and the Java core class Library. 2, the environment variable name is java_home, the variable value is: C:\JDK (depending on the JDK path you installed, if the default should be this form C:\Program files\java\jdk1.7) variable named classpath, variable value is. %java_home%\lib the variable name is path and the value of the variable is%java_home%\bin the environment configuration for the JDK has been completed, enter the Java-version test to see if the installation was successful at the cmd command line interface. 3. Tomcat installation and configuration configuration Tomcat environment variable add the following variable in the system variable 1) variable name tomcat_home variable value c:\tomcat (tomcat decompression path) 2) variable name catalina_home variable value c: \ Tomcat3) find the PATH variable name in the system variable, double-click or click edit, Add the following at the End;%catalina_home%\bin;%catalina_home%\lib here, be aware that the values of each variable must be Separated. 4) start the Tomcat server cmd into the Tomcat directory Run command startup5)Configure project path under Tomcatthe first: (assuming Tomcat is installed under c, project name Bidding) Open c:/tomcat/conf/server.xml, Add code between second: All files under the root of the Tomcat installation directory are deleted, and then all the extracted files are copied into the Project. third: Tomcat5.0 The following versions will automatically generate a root.xml in the C:/tomcat/conf/catalina/localhost directory, but the file is not generated by more than 5.0 versions, so you can create a new root.xml. Add the following code inside: <? XML version= ' 1.0 ' encoding= ' utf-8 '? ><context crosscontext= "true" docbase= "" c:/program Files/apache Software Foundation/tomcat 5.5/webapps/bidding "" path= "" reloadable= "true" ></Context> attached: Tomcat configuration file Server.xml detailedhttp://blog.csdn.net/yuanxuegui2008/article/details/6056754teach you how to configure Tomcat under Eclipsehttp://jingyan.baidu.com/article/ca2d939dd90183eb6d31ce79.html

My journey to Java first lesson development environment preparation

Related Article

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.