"Java Development series"--JDK installation

Source: Internet
Author: User
Tags virtual environment

Objective

As a Java developer, installing the JDK is unavoidable, but the configuration path is always not remember, Baidu also has a lot of reference examples. This is just a note record for later reference.

when it comes to JDK, you have to mention the JRE. What the hell are they?

Usually we do Java development, is to use the JDK, it is dedicated to developers to use the API toolkit, compiler, JRE and so on. The JRE is the environment required for Java-related applications to run, so there are fewer things to offer than the JDK.

For example, when we are developing, we go to the JDK path to find the appropriate jar package or LIB to use its functions. And the eclipse we're using is a Java application that wants to run and needs a JRE to provide a running environment.

And the JVM is the runtime of the virtual environment, because of this virtual environment, so that we can ignore the memory problems, arbitrary programming. It also provides us with many other benefits, such as garbage collection, which can be referred to in more detail in the Java Virtual machine.

installation of JDK:

Download can go to official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Under Windows Direct fool-mounted, next, on it.

If it is under Linux, generally we install Linux will provide us with a openjdk, if you want to use their own JDK, you need to reconfigure the path path, and the link file under Bin.

Detailed reference: http://www.cnblogs.com/xing901022/archive/2013/03/28/3248874.html

Below is an explanation of the Windows configuration path in the Windows Advanced environment

1 Configuring Java_home

Configure path, select the route is the JDK under the installation path

2 Configuring Classpath

Remember to bring a "." In front of you, configure the path to paste directly can:".; %java_home%\lib;%java_home%\lib\tools.jar "

3 Configuring Path

Directly after the path is added, preceded by a semicolon, used to separate from the original parameters. ";%java_home%\bin;%java_home%\jre\bin"

4 test, see version indicates successful installation

Here's a little experience:

  If you install other products from sun, such as Oracle, this product comes with a JRE. Usually it will automatically add the environment variables of the JRE to the path at the time of installation, which will result in other errors using the original version of the JDK! If you encounter this problem, be sure to check the configuration of the path variable.

"Java Development series"--JDK installation

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.