Idiot Java Installation Environment configuration on Mac

Source: Internet
Author: User

For Mac novice users or black Apple users

First, open the terminal

Input Java-version

Check if the Java Runtime environment is installed

Show me now that my computer is not installed

If the version number is returned, it indicates that the operating environment was successful

For the old driver of windows, it's clear what to do next.

Then download the JDK for the operating system on the Oracle website and click Agree to download it in the selected version

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Download it down

After installing the JDK, you need to configure the environment variables for the JDK, and if you are configuring environment variables for the first time, you can use: Touch. Bash_profile, create a hidden configuration file for. Bash_profile, and if you are compiling a configuration file that already exists, use the open. Bash_ Profile

About finding the path to the JDK installation directory home, many unfamiliar children's shoes may not be found, recommend a convenient way

That is, the command:/usr/libexec/java_home, press ENTER, is the corresponding directory.

And then save the exit

The terminal continues to enter:

source. Bash_profile Make configuration effective

Then enter:

Java-version checks to see if the Java version number is returned, which indicates that the configuration is already in effect.

OK, and then we continue to test the development environment,

Open Terminal

Enter Javac at the command prompt, press ENTER, the system will output the Javac help, if the success of the JDK has been successfully configured, you will need to see whether the above steps have been omitted negligence.

Can.

Fool-type Java Installation environment configuration on Mac

Related Article

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.