JSP Learning Note (i): Installation of JDK and configuration of environment variables

Source: Internet
Author: User

First, the installation of the JDK.

JDK can be downloaded from Oracle (Oracle) website, connection address: http://www.oracle.com/technetwork/java/javase/downloads/ Index-jsp-138363.html according to their own needs, you can choose to download JSE, JEE.

JSE (Java standard Edition), Java Standards Edition, contains classes that contain the core of the Java language, such as databases, interface definitions, input/output, and network programming.

JEE (Java Enterprise Edition), Java Business Edition, contains classes in JSE, and also includes classes for developing enterprise applications such as EJBS, Servlets, JSPs, XML, and transaction control, which are now the main directions for Java applications.

JME (Java Micro Edition), Java Mobile, contains the APIs for some of the classes in JSE and some wireless devices, including the classes needed for embedded development or mobile application development.

  

You need to select the consent terms and then select the download installation files that match your computer's operating system, and you need to differentiate between 64-bit (X64) and 32-bit (X86).


Click on the installation file to install the JDK and select the appropriate JDK installation path. The installation path is where you can choose the location you want to install, the path I installed is E:\WORK\JDK\jdk1.8.0_66, and then click Next to Install

The installation of the JRE will be ejected during installation, and the installation path can be set as needed. My installation path is set to E:\WORK\JDK\jre1.8.0_66.

This completes the JDK installation.

Second, the JDK environment variable settings.

Right-click My Computer, properties, advanced system settings, advanced, environment variables (the XP system looks like this: right-click My Computer, properties, advanced, environment variables, and so on).

In System variables, select New.

Variable name: java_home

Variable Value: (The path of your JDK installation, for example my is: E:\WORK\JDK\jdk1.8.0_66)

See if there is a path variable in the system variable, create a new variable path if it does not exist, select Edit if it exists, and note that a semicolon is required to separate it from other variable values.

Variable name: PATH

Add variable value:%java_home%\bin;%java_home%\jre\bin; or%java_home%\bin;

See if there is a CLASSPATH variable in the system variable, create a new variable classpath if it does not exist, and select Edit if it exists. Notice that the variable value is preceded by an English-formatted ".".

Variable name: CLASSPATH

Add variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

What I added later was "%java_home%\lib\dom4j-1.6.1.jar;", which is the dom4j technique used when developing XML files.

Open the DOS command window and enter Java or Javac to show that the configuration was successful.

The following screen shows that the environment variable configuration is unsuccessful.

Reprint please specify reprint address: http://www.cnblogs.com/FlyingPuPu/p/5094335.html

    

JSP Learning Note (i): Installation of JDK and configuration of environment variables

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.