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