Java study notes (two)-commonly used DOS commands, installation of JDK and Java environment variable configuration

dos command:

  • c: switch drive letter (case is not distinguished)
  • dir View catalog files
  • cd x move to x folder
  • . Current directory
  • …Upper directory
  • cls = clear in Linux
  • Arrow keys ↑↓ switch history commands
  • tab completion command
  • md=mkdir create directory
  • rd=removedir delete directory
  • copy copy files
  • del delete file

Install jdk:
Keep clicking Next, the installation directory is the default

Configure java environment:
right click on this computer, click properties,
click advanced system settings
Insert picture description here

Enter in CLASSPATH.; Then enter the path of the lib directory of jdk and the path of tools.jar under lib
Insert picture description here

Enter the jdk path in JAVA_HOME
Insert picture description here

Enter the path of the bin directory under jdk and the path of the bin directory under jre in the PATH

Insert picture description here

Guess you like

Origin blog.csdn.net/yeah_sm/article/details/113121860