java-environment According to installation and configuration

Source: Internet
Author: User

Classification of Languages :

First generation: Machine Language second generation: assembly language Third generation: high-level languages (process-oriented---object-oriented)

Java language features : ① Object-oriented ② robustness ③ cross-platform (write once, run anywhere)---JVM

The riverbed is like the bottom, the JDK is the river, and the Java application is like a ship.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/96/FD/wKioL1knuBzRdEduAASZrYr_opM030.png-wh_500x0-wm_ 3-wmp_4-s_1101617254.png "title=" Image.png "alt=" Wkiol1knubzrdeduaaszryr_opm030.png-wh_50 "/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

1. Download and install the JDK. Baidu search JDK7 Download, and then download note the operating system and 32-bit/64-bit difference. At the time of installation, everything is default.

Terms:

JDK (Java Development Kit)-the Java SDK, which needs to be downloaded and installed.

JRE (Java Runtime Environment)--Java Runtime Environment, after installing the JDK.

The JVM (Java Virtual machine)-the Java VM-is the carrier of Java, and the Java program must run in the JVM.

Java API-Java application Interface is the manual (Java Official Code specification).

IDE--integrated development environment, is a large-scale development tools, such as: Eclipse.


2, the JDK installation is complete, the environment is there, but the operating system does not know, you need to configure environment variables, notify the operating system.

Environment variables need to be configured with two (preferably three, later useful):

Path/path (Microsoft is case-insensitive, Linux is case-insensitive)-Do not delete the original content, add the JDK's Bin directory to the front, and then separate it with semicolons.

(The Path the window operating system will search for when executing the command)

C:\Program Files\java\jdk1.7.0_09\bin (the path path can be changed to%java_home%\bin after configuring Java_home)


Java_home C:\Program files\java\jdk1.7.0_09


CLASSPATH--configuration.; You can: represents the current directory, separated by semicolons from other directories.


Path is configured with a tool (javac/java/...) Path, CLASSPATH is configured with a code path.


Note:

1 in the Java language/linux system, the letters are 52 (case-sensitive), not 26.

2 Some operating systems CLASSPATH not configured can also.


positioning of Windows environment variables:

Right click on computer/My Computer, select Properties, point advanced system design/advanced, see environment variables.

You can configure it by entering it. Path is found later, click Edit or double click, and then modify.

Classpath needs to be created.

Verification method: Use the Windows key +r start the running window, tap cmd Enter, start the DOS window. Then enter JAVAC on the DOS command line. Or Java-version View the Java version.


java-environment According to installation and configuration

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.