=============================================================================
=============================================================================
the knowledge points involved are:
1:Computer Overview (Learn)
2:Keyboard function key recognition and shortcut keys (master)
3:Common DOS Commands (master)
4:Java language Overview (learn)
5:The role and relationship of JVM,JRE,JDK (mastery)
6:JDK download, install, uninstall and release notes for Eclipse (master)
7:First Program: HelloWorld case (Master)
8:Common problems (Master)
9:Path environment variable (master)
Ten:CLASSPATH Environment Variables (understanding)
One :The difference between path and classpath
=============================================================================
=============================================================================
1: Computer Overview (Learn)
(1) Computer
(2) Computer hardware
(3) computer software
system software:DOS (Disk Operating SYSTEM), Windows, Linux, Unix, Mac, Android, iOS, etc.
application software: QQ, YY voice, flying autumn, etc.
(4) Software development (understanding)
Software:is made up of data and instructions. Calculator
Development:is to make the software out.
How to implement software development ?
A: It's the use of development tools and computer language to make things.
(5) Language
Natural Language:A variety of expression symbols for people to communicate with each other.
Computer language: A special language for communication between man and computer.
For example: C, C + +, C #, Java, and so on.
(6) Human-Computer Interaction
Graphical interface mode: Easy and intuitive to operate.
DOS command line: Some common commands need to be remembered.
-----------------------------------------------------------------------------
2: Understanding of Keyboard function keys and shortcut keys (master)
(1) Understanding of function keys
Tab
Shift
Ctrl
Alt
Windos
Space
Up or down
Carriage return (Enter)
(Prt Sc)
(2) shortcut keys
Select All Ctrl + A
Copy Ctrl + C
Paste Ctrl + V
Shear Ctrl+x
Undo Ctrl + Z
Save Ctrl+s
-----------------------------------------------------------------------------
3: Common DOS Commands (mastering) Windows with backslashes \ means directory
(1) The following are common
switch of the drive letter
D: Enter
Entry of the catalogue
CD Javase
CD Javase\day01\code
Fallback for Directory
CD: Go back to the top level directory
Cd\ back to the root directory
Clear Screen
CLS (Clear screen)
Exit
Exit DOS command line
---------------------------------------
(2) other several (learn)
Create a Directory
Mk/mkdir (Make directory)
Delete Directory
Rd/rmdir (remove directory)
Create an empty file
Type Nul>a.txt or type nul> a.txt
Edit Enter WIN10 has not found the command
Create a non-empty file
Echo Chenmingjun>a.txt
deleting files
Del a.txt (delete)
Show content in Directory
Dir lists the files and folders in the current directory
Delete a directory with content
rd/s/q haha quiet mode delete
-----------------------------------------------------------------------------
4:java Language Overview (Learn)
(1) History of the Java language
Java's father James Goslin
JDK1.4.2
JDK52004.9.30
JDK72011.7.28
JDK82014.3.18
JDK92017.9.21
(2) features of the Java language
There are many small features, focusing on two: open source, cross-platform.
(3) The Java language is cross-platform, how can I guarantee it? (understanding)
We explain it through the case of translation.
Different JVM implementations are available for different operating systems.
(4) The Java language Platform
Javase
Javame--Small coffee/android
Java EE--Web
-----------------------------------------------------------------------------
the role and relationship of 5:JVM,JRE,JDK (mastery)
(1) function
JVM: Ensure that the Java language is cross-platform.
Jre:java the operating environment of the program.
The development environment of the Jdk:java program.
(2) Relationship
JDK = Jre+ tool (compilation tools Javac.exe and packaging tools Jar.exe, etc.)
JRE = jvm+ Class Library
-----------------------------------------------------------------------------
6:jdk Download, install, uninstall and release notes for Eclipse (master)
(1) Download
Download URL: http://www.oracle.com/technetwork/java/javase/downloads/index.html
(2) Installation
A: The green version of the software: Direct decompression can be used.
B: Installation version of the software: must be a step-by-step installation, usually a fool-type installation.
Attention:
It is recommended that all development-related software should not be installed in a directory with Chinese or white space.
(3) Uninstall
A: The green version of the software: delete the folder directly.
B: Installed version of the software:
A:windows system: Control Panel \ Programs \ Programs and Functions
B: Uninstall with a professional software uninstall tool (e.g. 360 software manager).
---------------------------------------
-----------------------------------------------------------------------------
7: First Program: HelloWorld case (Master)
1 class HelloWorld { 2 public static void main (string[] args) { 3 System.out.println ("HelloWorld" 4 } 5 }
(1) Procedure explanation:
The most basic unit of a A:java program is a class, so we're going to define a class.
Format: Class name
Example: Class HelloWorld
B: When writing content in a class, enclose it in curly braces.
To execute a c:java program, you must have the main method.
Format: public static void Main (string[] args)
D: To point to those things and enclose them in curly braces.
E: What are you going to do? Today we just made a simple output.
Format: System.out.println ("HelloWorld");
Note: The contents of "" can be changed.
---------------------------------------
(2) Java program development and execution process:
A: Writing Java source program (. java)
B: Build the. class file by compiling the Javac command
C: Run the. class file with the Java command
As shown in the following:
-----------------------------------------------------------------------------
8: Common problems (Master)
(1) The extension is hidden.
How to display the extension: Under Windows system: View--file extension This option tick or view--options--view--Hide known file extensions This option does not tick
(2) The file name and the class name are required to match.
In fact, it is possible not to do so.
However, note:
Javac followed by a filename. Extension for example: Javac Helloworld.java
Java followed by the class name with no extension such as: Java HelloWorld
(3) The Java language is strictly case-sensitive, please note.
There is also the word don't write wrong.
(4) See illegal characters:
For example, under the Win7 system: Error: Illegal character: \65307 is definitely a Chinese issue.
For example, under the WIN10 system: Error: Encoding GBK non-mapped characters
We write procedures that require punctuation marks to be all in English state.
(5) The pairing problem of brackets.
In general, the parentheses are paired up.
(6) When you run the program and encounter the following error
Error: The main method could not be found in class HelloWorld, define the Main method as:
public static void Main (string[] args)
It can be judged that there is a problem with the format of the main method.
-----------------------------------------------------------------------------
9:path Environment Variables (master)
(0) Imitate Notepad's command, to do Javac and Java commands.
(1) The role of the PATH environment variable:
Ensure that commands such as Javac, Java, and so on can be run under any directory under the command line.
Similarly, you can configure QQ and so on.
(2) path configuration of two scenarios:
A: Scenario 1 (understanding)
Add the Bin directory under the JDK installation directory to the leftmost (and add semicolon) in the system variable in the environment variable path. (Why the left?) Answer: So search fast! )
This method of configuring environment variables is not good, when there are multiple versions of the JDK, when the environment variables are configured again, it is easy to remove the other things in the path, may cause the system to collapse!
B: Scenario 2
Find the location of the environment variable, inside the system variable,
New:
Variable name: java_home
Variable Value: D:\learn\Java\JDK\jdk1.8.0_161
Modify:
Variable name: Path
Variable value:%java_home%\bin; previous content
-----------------------------------------------------------------------------
10:classpath Environment Variables (understanding)
(1) The role of CLASSPATH environment variables:
Allows us to compile the generated Xxx.class files in any directory.
(2) configuration of CLASSPATH environment variables:
Find the location of the environment variable, inside the system variable,
New:
Variable name: classpath
Variable value: E:\ learning material \java\ Podcast _2015 Java Basics Video-Essentials edition \day01\day01\code\ Code \helloworld case
But what? Generally we don't deserve classpath. Because the normal operation is the. class file in the current directory.
-----------------------------------------------------------------------------
the difference between 11:path and Classpath
PATH environment variable:An executable file, such as an. exe file, is logged in to the executable file, which is located in the current path, and if not found, go to the path configured in the PATH environment variable.
classpath Environment variables:is the directory where the Java class's running files are located. such as:. class files.
=============================================================================
Java Basic Learning _day01 Summary