The first step in Java-building a Java development environment

Source: Internet
Author: User

Originally should introduce Java, title all want to--java of past life, but in order to save is time, directly cut into the subject, interested can surf the internet to check. For Java development, the first step is to install the JDK (Java Development Kit) Java Development Kit. JDK is necessary to compile Java source code, run Java programs, such as JVM "Java Virtual machine", JRE "Java Runtime Environment", basic class library, packaging tools and so on. So learning the configuration of the JDK is the first step to learning Java.download of JDKThere are different versions of JDK (J2SE, Java EE, J2ME), and beginners are generally choosing J2SE. The J2SE is: http://www.oracle.com/technetwork/java/javase/downloads/ jdk7-downloads-1880260.html download JDK need to accept the corresponding terms, default is not downloadable, select the appropriate operating system, click the download link to download.installation of the JDKDouble-click on the downloaded installation package to install, click "Next", appears as shown in the interface: You can change the JDK installation directory, but must remember the location, the following configuration environment will use this installation directory, click "Next", waiting for installation. After the JDK installation is complete, you will be prompted to install the JRE, as shown in the following: The JRE is already included in the JDK, no need to install again, click "Cancel". Click "Close", complete the installation, then start the environment variable configuration, remember the previous said to remember the JDK installation directory?settings for Environment variablesIf you do not understand the concept of environment variables, please click here:https://www.baidu.com/"Yes, Baidu, learn to get resources from the Internet."Enter the environment Variable configuration window, in "User variables", set 3 properties, Java_home, PATH, CLASSPATH, if already exist then click "Edit", not exist then click "New":
    • Java_home: Set the installation path for JDK "such as D:\Program files\jdk1.7.0_71".
    • Path: Allows the system to identify JAVA commands under any path, set to:%java_home%\bin. "%java_home% is referring to the Java_home variable specified earlier."
    • Classpath:java Run Environment Load class path, only class in CLASSPATH, can be recognized and loaded, set to.; %java_home%\lib "Note the preceding dot (.), the dot indicates the current path."
How do I verify that the environment variable is configured successfully? Win+r open a "Run" window, enter cmd, click OK "or enter". Enter "Java-version" or "javac" command, see a lot of information, proof has been installed and configured successfully. Represents the version of your JDK that is 1.8. At this point, our preparations have been completed and the next step is to start the Java journey.NotesSince the JDK is already installed on my computer, I use the online resources on the image, such as copyright issues, please feel free to contact me, invasion and deletion.

The first step in Java-building a Java development environment

Related Article

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.