JDK installation configuration under Mac, MacJDK installation Configuration

Source: Internet
Author: User

JDK installation configuration under Mac, MacJDK installation Configuration

First, you can download JDK: composer from the official website.

After the installation package is downloaded, run the installation package and continue and confirm the installation package.

After installing the package, open the terminal to create the. bash_profile configuration file.

Touch ~ /. Bash_profile

Configure the. bash_profile File

Vim ~ /. Bash_profile

Then edit in vim as I downloaded the jdk-7u79-macosx-x64 version, so the following names contain "7"

After editing, run wq to save and exit, and then re-execute the. bash_profile file.

Source ~ /. Bash_profile

Finally, let's verify if JDK is successfully installed and environment variables have been configured. For example, if you see the java version output from the terminal, it indicates that the configuration has been successful.

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.