Building a Java environment

Source: Internet
Author: User
Tags java se

First, JDK download

Java's JDK, also known as Java SE (formerly known as J2SE), is a product of sun, and since Sun has been acquired by Oracle, the JDK is available on the Oracle company's official website http://www.oracle.com/index.html Download. The steps are as follows (for example, JDK 7):

1. Open Internet Explorer and enter the URL "http://www.oracle.com/index.html" to browse the official Oracle homepage. Move the cursor over the Downloads menu item on the toolbar, the Download list drop-down menu appears, and click the Java for Developers hyperlink.

2. You will be redirected to the download page of the JDK, where you click the latest version of the JKD hyperlink, which is the Dowmload button.

3. On the new page that you are entering, you need to select the radio button for the consent agreement, and the page for the download list for JDK 7Update 3 will be displayed, otherwise you won't be able to download the hyperlink when you click the download.

4. In the download list, you can select the appropriate version for your computer hardware and system to download. If you are a 32-bit Windows operating system, you will need to download the Jdk-7u3-windows-i586.exe file and click the file's hyperlink directly on the page.

Second, the JDK environment of Windows system

1.JDK Installation

Download the JDK installation files for the Windows platform Jdk-7u3-windows-i586.exe and install them after the following steps:

(1) Double-click the downloaded file, the Welcome dialog will pop up, you will be asked to accept the Sun Company's license agreement, click the Accept button, and then click the Next button.

(2) in the "Custom Installation" dialog box that pops up, you can select the installed feature component, where the default setting is selected.

(3) Click the "Change" button, the "Change Folder" dialog box will appear, in which the JDK installation path is changed to C:\Java\jdk1.7.0_03\, click the "OK" button, will return to the Custom Installation dialog box.

(4) Click the "Next" button to start installing the JDK. The JRE's target Folder dialog box pops up during installation, where the JRE's installation path is changed to C:\Java\jre7\, and then the Next button is clicked, and the Installation Wizard continues to complete the installation process.

(5) After the installation is complete, click the "Continue" button in the pop-up dialog to install the Jacafx SDK. If you do not want to install, you can cancel the installation of JavaFX by clicking the Cancel button.

2. Configuring environment variables in Windows 7 systems

The steps are as follows:

(1) Right-click on the Computer icon, select Properties from the popup shortcut menu, click the Advanced system settings hyperlink on the left side of the pop-up Properties dialog box, and the System Properties dialog box opens.

(2) Click the Environment Variables button to bring up the Environment Variables dialog box, click the New button under the System Variables column to create a new system variable.

(3) Pop up the "New System Variable" dialog box, enter the variable name "Java_home" and the variable value (that is, the JDK installation path), where the variable value is the author's JDK installation path, the reader needs to modify according to their own computer environment, click the "OK" button, close the "New System Variable" dialog box,

(4) In the Environment Variables dialog box, double-click the path variable to modify it, and add it to the front of the original variable value. ;%java_home%\bin; Variable value (be careful not to discard ";", which is used to split different variable values), click the OK button to finish setting the environment variables.

(5) After the JDK installation is successful, you must confirm that the environment is configured correctly. Testing the JDK environment in a Windows system requires selecting the Start/Run command (without the Run command, you can press Windows+r), and then enter CMD in the Run dialog box and click OK to start the console. Enter the Javac command in the console and press ENTER to output the compiler information for the JDK, including information such as syntax and parameter options for modifying the command. This indicates that the JDK environment was built successfully.

3. Configuring environment Variables in Windows XP and Windows 2003 system sheets

The steps are as follows:

(1) in the "My Computer" icon is right-click, in the Popup shortcut menu, choose the "Properties" command, pop Up the "System Properties" dialog box. Select the Advanced tab, click the Environment Variables button, pop Up the Environment Variables dialog box, click the New button under System variables to create a new system variable.

(2) Popup "New System Variable" dialog box, enter the variable name "Java_home" and the variable Value "C:\Java\jdk1.7.0_03", where the variable value is the author's JDK installation path, the reader needs to change according to their own computer environment, click the "OK" button, close " New System Variable dialog box.

(3) In the Environment Variables dialog box, double-click the path variable to modify it before the value of the original variable is added.; %java_home%\bin variable Value (note that the last ";" Do not lose, it is used to split different variable values), click the "OK" button to complete the environment variable settings.

(4) After the JDK installation is successful, you must confirm that the environment is configured correctly. Testing the JDK environment in a Windows system requires selecting the Start/Run command, and then entering CMD in the Run dialog box and clicking the OK button to start the console. Enter the Javac command in the console and press ENTER to output the compiler information for the JDK, including information such as syntax and parameter options for modifying the command. This indicates that the JDK environment was built successfully.

Building a Java environment

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.