Java Environment Configuration

Source: Internet
Author: User

For Java developers, the first step is to configure the Java development environment.

You need a JDK, not a JRE!

1.

After Oracle acquired Sun, a new version of Java was released by Oracle.

The current version is JDK 1.8

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

  

Select the corresponding operating system version (Windows/linux/solaris/mac OS, 64bit/32bit) todownload.

2. Installing the JDK

   2.1 Windows:

Choose the installation directory (the default is C:\Program Files\java, the proposed new without space path), all the way "next", waiting to complete;

   2.2 Linux:

Full complement

   2.3 Solaris:  

Full complement

   2.4 Mac OS:

Full complement

3. Configure Environment variables

3.1 Windows: 

3.1.1       computer → properties → advanced system settings → advanced → environment variables

      

3.1.2       System variables → new java_home variable

Variable value fill in the JDK installation directory (example: E:\Java\jdk1.8.0)

      

3.1.3       System variables → find Path variable → edit

Enter%java_home%\bin at the end of the variable value ;

(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)

      

       3.1.4   system variable → new CLASSPATH variable

Variable values are filled in .; %java_home%\lib; (Note that there is a point in the front),

If the CLASSPATH variable already exists, the value of the variable is entered at last ;%java_home%\lib;

        

      

System variable configuration is complete. Cmd-javac

       

   3.2 Linux:

Full complement

   3.3 Solaris:  

Full complement

   3.4 Mac OS:

Full complement

Java Environment 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.