1-Build a JAVA development environment and 1-Build a java Development Environment

Source: Internet
Author: User

1-Build a JAVA development environment and 1-Build a java Development Environment

Step 1: Install JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html, and later versions (depending on your computer). Select the path and remember the path.

Installation path: the bindirectory is an executable file. The main files are javac.exeand java.exe.

The lib directory is the class library file for JAVA Development, ending with. jar.

Step 2: Configure environment variables:

JAVA_HOME: configure the JDK installation path

PATH: configure the JDK command file location, which is both bin

CLASSPATH: Specifies the location of the class library file.

Configuration method: My computer (right-click) -- properties -- Advanced System settings -- environment variables -- System Variables

1. JAVA_HOME needs to be created. JAVA_HOME is the variable name, And JDK installation path is the variable value.

2. The path itself is owned. Add it. The path of the bin directory is the variable value, which is placed at the frontend and separated by semicolons (;).

3. CLASSPATH also needs to be created. The variable value is the path of lib, Which is.; F: \ JDK_Soft \ lib. (The comma is not counted.) This is my path. Pay attention to the preceding points and semicolons.

Then click OK.


Verification Successful:

Open the command line file and CMD. execute java and javac. If a bunch of similar things appear, the configuration is successful.

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.