Java environment installation, java environment

Source: Internet
Author: User

Java environment installation, java environment

1. Download jdk and eclipse

Jdk:

Version 1.8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Version 1.7 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Eclipse:

Http://www.eclipse.org/downloads/index.php

2. Install jdk and configure Environment Variables

Method: Computer → properties → advanced system settings → environment variables → add Environment Variables

Variable name Variable value Description
JAVA_HOME C: \ Program Files (x86) \ Java \ jdk1.8.0 _ 73 Jdk installation directory
PATH % JAVA_HOME % \ bin Java.exe directory
CLASS_PATH % JAVA_HOME % \ lib Directory where tools. jar is located

 

 

 

 

3. Check whether jdk is successfully installed.

Method: Run cmd to enter the console.

Enter java-version. The result is as follows:

Enter java and the result is as follows. The preceding result indicates that jdk has been successfully installed. Install eclipsedecompress the downloaded eclipseinstallation package in 4、. double-click eclipse.exe during installation and installation. The cause is that the number of digits of eclipse and JDK is different. solution: view eclipse. INI file, for example, my eclipse. the content of the INI file is as follows. You can see that the required jdk version is 1.7, so replace jdk with 1.7.

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.