WINDOWS7 Java Operating Environment construction process diagram _java

Source: Internet
Author: User
Tags windows x64

First step: Download JDK

Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html, (since Sun was acquired by Oracle in 2009 so the URL is Oracle)

Click the Java Download button.

Select the Accept License Agreement radio button.

We take the Windows 64-bit operating system as an example to download the Windows X64 version of the JDK.
Click "Jdk-8u5-windows-x64.exe" to download directly.

Step Two: Install

Double-click to run Setup

Click the Next button.

Click the Change button to select the installation directory for the JDK. (Personal recommendations not modified)

Click "Next" button to install ...

Click the Change button to select the installation directory for the JRE. (Personal recommendations not modified)


Click "Next" button to install ...

Installation complete.

Appendix: JDK Directory Structure:

Jdk\bin\

Includes compilers, interpreters, and some basic tools

Jdk\include\

is a WIN32 subdirectory, including local method files

Jdk\jre

is the root directory of the Java program's running environment

Jdk\jre\bin

Executable and dynamic link library files including platform runtime tools and class libraries

Jdk\jre\lib

Includes code libraries for Java runtime environments, default installation files, and more

Jdk\lib

Include Class library files

Jdk\src.zip

Source code Compression file

Step three: Set up

Defined:

An environment variable is an object with a specific name that contains the information that one or more applications will use.
For example, path, when the system is asked to run a program without telling it the full path of the program, the system, in addition to looking for the program under the current directory, should also go to the path specified in paths to find. Users to better run the process by setting the environment variables.

Right-click My Computer--> click the Properties option.

Click the Advanced system Settings option.

Select the Advanced tab. Click the Environment Variables button.

Click the New button.

Note: System environment variables work for all users, and user environment variables only work for the current user.

Fill in the variable name and variable value.

(1) Java_home

is the path to the JDK in the Java installation path. (Ensure that software such as JCreator, Eclipse, and MyEclipse works)

For example: C:\Program files\java\jdk1.8.0_05

(2) PATH

The Java compiler (Javac.exe) Java Interpreter (Java.exe) is included in the Bin folder of the JDK installation directory, and the path should be set in system attributes in order to be able to use compilers and interpreters in any directory.

For example: C:\Program files\java\jdk1.8.0_05\bin
or written as%java_home%\bin (where "%java_home%" is the path that just sets the JDK.) And when the JDK path changes, there is no need to change here.

Note : If there are multiple variable values, use the ";" Separate (not including quotes)

(3) CLASSPATH

The Lib folder in the JDK installation path contains Java class library files that are required by the Java application Runtime.

For example:.; C:\Program Files (x86) \java\jdk1.7.0_03\lib
or write.; %java_home%\lib ("%java_home%") means ditto. )

Note : Be sure to add ".;" At the beginning (not including quotes)

Press the key combination "Win" + "R", bring up the running window, enter CMD in the "Open" text box, and click the OK button.

Eject the command prompt interface, type Java at the cursor, and enter.

When you enter "Java" and return (or Javac), if you have help to display Java, the environment variable setting is successful.

Appendix

Main programs in the JDK:

Javac

java compiler, which converts Java source code to byte code.

Java

Java interpreter, which executes Java application bytecode directly from the class file.

Appletviewer

Applet browser, a Java browser that executes Java applets on HTML files.

Javadoc

Generate HTML documents based on Java source and description statements.

Jdb

Java debugger, you can execute a program line-by-row, set breakpoints, and check variables.

Javah

Produces a C procedure that can invoke a Java procedure, or a header file that creates a C procedure that can be invoked by a Java program.

Javap

The Java disassembler, which shows the accessibility features and data in the compiled class file, while displaying the meaning of the byte code.

Development environment Built!!

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.