java Note 1: Preparations: java history, Java environment, java editor, cmd commonly used commands

 

java History

  1. Java was developed by Sun Microsystems company in 1995 to launch a Java object-oriented programming language and the Java platform in general.
  2. Jointly developed by James Gosling and colleagues, and officially launched in 1995.
  3. java is a very popular computer programming languages, most of which use is java8

 

java environment

  jdk

    •   java develop kit is a development tool
    •   Installation Recommendations 1. Do not have a Chinese path or external public spaces 2. To cancel the JRE is installed separately

  JRE

    •   Java Runtime Environment
    •   Is a runtime environment including JVM

  JVM

    •   Java Virtual Machine: java virtual machine, is at the heart
    •   System environment variable path configuration 1. Create a new variable: JAVA_HOME, configure the installation Road King, do not fill the bin; 2. Add the path where: JAVA_HOME / bin
    •   In fact, we can directly open the notepad is the system default setting environment variables win + R in

  Installation Photo:

    •   First, my computer \ Right Properties \ Advanced system settings: win10 can search for "Environment Variables" At the beginning, the Enter:

    •   Second, click the environment variable, the new variable name "JAVA_HOME" in the system variable, the value of jdk installation path

    •   Third, add "% JAVA_HOME% \ bin" in the system variable Path Lane, can be determined

 

editor

  notepad plus++

  default setting

  1. Preferences: New default settings to java
  2. Preferences: The default encoding settings to ANSI

  eclipse

  a) official website

  https://www.eclipse.org/downloads/

  b) Download

  Where the yellow button "Download 64 bit" is an installation package, download the required networking; recommend click on the bottom "Download Packages" to download the offline compression package, the green version.

  c) Common shortcuts

  1. Single-line comments Ctrl + /
  2. Multi-line comments Ctrl + Shift + / && Ctrl + Shift + \
  3. Moves up or code Alt + ↑ && Alt + ↓
  4. Copy up or down one line Ctrl + Alt + ↑ && Ctrl + Alt + ↓
  5. Delete the current line Ctrl + D

 

Guess you like

Origin www.cnblogs.com/ziChin/p/Java.html