The first attempt to learn java jdk installation and configuration environment variable

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_HOMEenvironment 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_HOMEthe bindirectory to the system environment variables PATHon.

Path =% JAVA_HOME% \ bin; <Other conventional path>

To JAVA_HOMEthe binadd directory to PATHthe 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_HOMEa binfind 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 ( .javaend extension) is compiled into Java byte code files ( .classend extension);
  • jar: for a group of .classpackage files into one .jarfile 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.

Guess you like

Origin www.cnblogs.com/fqh123/p/10960926.html