First learning java, java today know the Father's name is James. High Commander
Other not remember too much, First, let's install jdk
Baidu search jdk12 (now 12 jdk version) is installed stable version
Find javaSE12X. . Download can be installed (typically in the default path jdk12x c disc program fiels the java files)
After installing the JDK, you need to set an JAVA_HOME
environment variable that points to the JDK installation directory.
To open environment variable under My Computer window by right - Properties - System - Advanced System Settings - Environment Variables
Let's set up a JAVA_HOME environment variable:
Click New
Property name: JAVA_HOME
Property Value: C: \ Program Files \ Java \ jdk-12.0.1
Then, JAVA_HOME
the bin
directory to the system environment variables PATH
on.
Path =% JAVA_HOME% \ bin; <Other conventional path>
To JAVA_HOME
the bin
add directory to PATH
the order can be run in any folder java
. Open a command prompt, type the commandjava -version 看一下java的版本
ok success!
This is the java tutorial website Liao (liao) peaks teacher
https://www.liaoxuefeng.com/wiki/1252599548343744/1280507291631649
Careful shoes can be JAVA_HOME
a bin
find a lot of executable files directory:
- java: This executable is actually a JVM, a Java program to run, is to start the JVM, then let the JVM perform the specified code compiler;
- javac: This is a Java compiler, which is used to Java source files (
.java
end extension) is compiled into Java byte code files (.class
end extension); - jar: for a group of
.class
package files into one.jar
file for easy release; - javadoc: for automatically extracting comments from Java source code and generate documentation;
- jdb: Java debugger for debugging the development phase of the operation.