"Dark Horse Programmer"--java configuration steps for environment variables and JDK, JRE

Source: Internet
Author: User

------<a href= "http://www.itheima.com" target= "blank" >java training, Android training, iOS training,. NET training </a>, look forward to communicating with you! -------

----- I'm hakka_lgm, please give me a lot of advice

Configuration steps tool for Java environment variables

1.jdk1.8.0

2.win7 x64, Win8 x64

Steps

Install JDK two installation prompts appear during installation of the installation directory. The first time is to install the JDK, and the second is to install the JRE. It is recommended that all two are installed in a different folder in the same Java folder. (Not all installed in the Java folder root directory, JDK and JRE installed in the same folder may be error)

As shown in the following:

1: Install the JDK arbitrarily select the hard disk only need to \java the default installation directory before the directory modification (not recommended on the C-drive)

2: Install jre→ change →\java before directory and install JDK directory

Note: If no installation directory is required, all default settings are available. No need to make any changes, two times directly point to the next step.

3: Configure environment variables after installing JDK computer → properties → advanced system settings → advanced → environment variables

4: System variable → new java_home variable.

Variable value fill in the JDK installation directory (as I installed in D:\Java\jdk1.8.0_20)

5: System variable → find Path variable → edit

Enter at the end of the variable value; D:\Java\jdk1.8.0_20\bin

(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)

6: System variable → new CLASSPATH variable "not worthy"

Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that the front is a little bit)

System Variable Configuration complete

7: Verify that the configuration is successful

Run the cmd input java-version (there are spaces between Java and-version)

If the version information is displayed, the installation and configuration are successful.

JDK, JREJDK

The JDK (Java Development Kit,java SDK), which contains a variety of development-related tools for compiling tools, interpreting tools, document authoring tools, and packaging tools, is available to Java developers. When beginners learn and use the Java language, they must first download and install the JDK. The JRE section is already included in the JDK, and it is not necessary to download and install the JRE after beginners install the JDK.

Jre

The JRE (Java Runtime Environment,java Runtime Environment), which is equivalent to the operating system section, provides the basic conditions that Java programs need to run and many Java base classes, such as IO classes, GUI control classes, network classes, and so on. The JRE is available to ordinary users, and if you only want to run Java programs that others have developed, then you must install the JRE on your computer.

The difference between a JRE and a JDK

JKD is the Java development environment, which contains the development kit, JRE. Development tools are Javac.exe, Jar.exe and so on.

The JRE is the Java Runtime Environment, which contains the Java Virtual Machine JVM, the core class libraries required by the Java program, and so on.

Summarize:

Use JDK development to complete the Java program, run it to the JRE, and guarantee the cross-platform by the JVM. The Java language cross-platform depends on Java developing different Java Virtual Machine JVMs for different operating systems, so the Java language is cross-platform, but the JVM is not cross-platform.

Features of Java

Object-oriented, cross-platform, robustness, security, portability, multithreading, dynamic and so on.

"Dark Horse Programmer"--java configuration steps for environment variables and JDK, JRE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.