Configuration of the Java environment on MAC OS x platform

Source: Internet
Author: User

Recently changed jobs, used to do the C + +, but now the company's flagship product is the use of Java development, in order to maintain the code later, now began to learn about Java-related content.

Before learning, the first need to build a variety of platform development environment, and I choose the operating system for the MacBook the latest OS X EI Capitan. Of course, as a beginner, I'm not going to use any advanced Ides, just configure the JDK, and then use the terminal to compile and run the code.

1th Step: Check whether the Java Development Kit has been installed, the method is simple, only need to open the terminal, enter the "java-version" command, if not installed, then the output information as shown.

If your system already has a JDK installed, you can see the corresponding version, otherwise you will need to perform the following installation.

2nd step: Download the latest JDK installation package to Oracle website:

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

On the page like the two icons shown, click on the left one to go to the download page. Then, first you need to agree with the Oracle Java License Agreement, and then select the corresponding platform installation package from the download list, and we need to select the link for Mac OS X for a long time.

The next step is to slowly wait for the download to complete.

3rd Step: Software Installation. The installation of the DMG package in OS x is simple, only need to double-click the corresponding package, then the package will be automatically extracted, after the completion of the installation of the package interface, follow the instructions.

4th Step: Environment variable configuration. After the software installation is complete, it cannot be used immediately, because the command in the terminal can not find the corresponding program, must add the full path of the program.

Note: If you are installing the latest version, such as the one used in this article, the environment variables have been configured during the installation process, so the 4th step can be omitted.

Resources:

[1] http://www.importnew.com/17192.html

Configuration of the Java environment on MAC OS x platform

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.