Java Learning Diary-1

Source: Internet
Author: User
Tags create directory directory create

I. Common DOS commands

1, dir (displays the file name under the current directory)

2, c/d/e/f: (The current directory is set to c/d/e/f disk, case can be)

3. MD (Make directory create directory)

4, CD (change the current directory, followed by the path, two special paths. and., respectively, the current directory and the previous level of the directory)

5. Copy source file name target file name (copy the contents of the original file to the target files)

6. del (delete file)

Second, setting the environment variable

After installing the JDK, you need to configure the environment variables to find my Computer-Properties-advanced-environment variables

Here you need to configure 3 environment variables

1, the new system variable Java_home, the variable value is the JDK installation path, such as C:\Program files\java\jdk1.7.0_51

2, new or modify the system variable path, variable value after adding%java_home%\bin;%java_home%\jre\bin;%java_home%\bin;

3, the new system variable classpath, the value of the variable is

.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

(An easy way to do this is to add the path to the bin directory of the JDK only after the variable value of path)

4. Enter Javac in console and if successful, the environment variable is configured successfully.

Java Learning Diary-1

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.