Java series Learning (II)-configure the development environment and java Series

Source: Internet
Author: User

Java series Learning (II)-configure the development environment and java Series

1. Set system environment variables

1. Set the JDK Path

Purpose: Use the path environment variable to configure the bin directory under the JDK installation directory to the path variable to run the javac and java commands in any directory.

 

Method 1: directly set the Path value on the Path

Purpose: run the. class file in the classpath directory in any directory.
Note: [the java program is a *. class file after compilation]

1.3.understanding of path and classpath

The path environment variable records executable files. If .exe is used, find the executable files in the current path first. If not, find the files in the path environment variable.

The classpath environment variable records the directory where the java class runtime files are located.

2. Compile the first java File

Step 1: write the code in notepad and save it:

Step 2: run the following command in the doc:

Step 3: analyze the execution process

3. manually configure a java ide

Note: [how to configure EditPlus to ide? refer to my article: C language-Environment configuration]

Preparation tool: EditPlus

Start Configuration:

3.1configure javac.exe

3.1configure java.exe

4. Start to write programs with your own ide.

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.