Java Series Learning (ii)-Configuring the development environment

Source: Internet
Author: User

1. Setting System Environment variables

1.1. Set the path path for the JDK

Role: Using the PATH environment variable, the bin directory under the JDK installation directory is configured under the PATH variable to enable the javac instruction and the Java directive to run in any directory

Method One: Set the path value directly on path

Method Two (recommended): set by referencing the variable name

The java_home is referenced to path in the%xxx% way

1.2. Configuring CLASSPATH Environment variables

Function: A. class file in the Classpath directory that can be run in any directory
Note: "Java program, after compiling is a *.class file"

Understanding of 1.3.path and Classpath

The PATH environment variable is the executable file, if the. exe, to the executable file in the current path to find, if not found, go to the path configured in the environment variable to find

The directory where the Java class runs files is recorded in the CLASSPATH environment variable.

2. Writing the first Java file

Step one, write the code on the Notepad and save:

Step two, execute under Doc:

Step three: Analyze the execution process

3. Manually configure a Java IDE

Note: "Specific editplus How to configure the IDE, see me another article: C-language-environment configuration"

Preparation Tool: EditPlus

To start the configuration:

3.1 Configuring Javac.exe

3.1 Configuring Java.exe

4. Start using your own IDE to write the program

Java Series Learning (ii)-Configuring the development environment

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.