jdk安装 /jdk目录解析(JDK installation / JDK directory resolution)

下载oracle下的jdk1.8安装包(选对系统)

安装(记住安装路径)

环境变量-系统变量-新建

   JAVA_HOME

值为你jdk的安装路径

path新建

%JAVA_HOME%\bin (放于path最前面)

%JAVA_HOME%\jre\bin

cmd 

java -version

jdk目录解析:

bin:存放可执行文件

jre:java运行环境

lib:存放java类库

src:java资源路径

————————

Download jdk1.0 Under Oracle 8 installation package (select the right system)

Installation (remember the installation path)

Environment variable – system variable – New

   JAVA_HOME

The value is the installation path of your JDK

Path NEW

%JAVA_ Home% \ bin (put in front of path)

%JAVA_HOME%\jre\bin

cmd 

java -version

JDK directory resolution:

Bin: store executable files

JRE: Java runtime environment

Lib: store Java class library

SRC: Java resource path