Home > System Tutorial > MAC > body text

jdk version for mac?

PHPz
Release: 2024-02-18 09:21:06
forward
999 people have browsed it

php editor Youzi will answer a common question for everyone in this article: "JDK version for mac?" Whether you are a developer or an ordinary user, the correct Java development kit version is essential for running Java on a Mac system. Procedure is crucial. Next, we'll detail the different JDK versions for Mac to help you choose the one that suits your needs.

mac installation jdk and environment variable configuration file

In the English input method, press the "Ctrl Space" key combination to bring up the Spotlight search box, quickly start the terminal and enter "ter", Press Enter to open the terminal.

When downloading the JDK version for Mac, go to the Oracle website to select the appropriate version, usually in .dmg format. Make sure to select the correct JDK version based on your Mac system version. When installing, just double-click the downloaded .dmg file to open the installer window.

Next, get the installation path of the JDK, which can be viewed by entering the command /usr/libexec/java_home -V. You can find the JDK installation path in the red box and copy it for later use. Then proceed to the formal configuration of Java environment variables. Enter the command vi /etc/profile to enter the file editing mode, press the i key to insert text content, and configure it according to the format shown.

Please follow the steps below: First, click the JDK download button. Then, choose to accept the license agreement on the pop-up interface. Then, click the download link behind MacOSXx64. After the download is complete, find the installation package and follow the prompts to complete the installation.

Mac installs two jdk, how to switch versions

How to switch dual systems of Apple computers: When starting or restarting the computer, press and hold the "option" key until the boot interface appears, and select "Macintosh HD" Or "Windows" system, use the arrow keys to select "Macintosh HD", and then press the Enter key to enter the Mac system.

The answer is yes. But when using it, you can only use one, not at the same time, and need to be switched.

Normally, if you need to use a lower version of JDK to open a JAR file, you can only open it by using the "java -jar" command on the command line. This is because the Java version in the command line can be switched by modifying environment variables.

OK. Just put different versions of Java in different locations, then modify the value of the JAVA_HOME environment variable as needed, and assign the path of the corresponding version to JAVA_HOME.

Mac download the latest version of java jdk13.0.1 How to configure environment variables in the terminal?

1. Under the English input method, press the "Ctrl Space" key combination to bring up the Spotlight search box , quickly start the terminal and enter "ter", then press Enter to open the terminal.

2. Open the Control Panel (Windows users) or System Preferences (Mac users). Enter "environment variables" in the search box (Windows users) or click the "Environment Variables" button under the "Advanced" tab (Mac users).

3. Visit Oracle’s official website http://, browse to the bottom menu of the homepage, and then follow the instructions below. (As shown in the picture below:) Click the JDKDOWNLOAD button. (As shown in the figure below:) Select AcceptLisenceAgreement to agree to the agreement.

4. Environment variable setting First, the first step is to find and copy the Java installation directory according to the arrow in the figure below. The second step is to first click the [This PC] icon in the email, then in the pop-up menu bar as shown in the figure below, click the [Properties] option, and then click [Advanced System Settings] on the left.

5. After clicking Advanced System Settings to enter, click "Environment Variables" below the pop-up box to configure the JAVA_HOME column. If it does not exist, you can create a new one. Finally, create it in the "System Variables" column below. Do not click in above. The configuration content of JAVA_HOME is the path of your JDK installation.

6. Make sure to download and install the JDK from a trusted source and follow the instructions of the installer. After installing the Java JDK, you can develop and run Java applications on your Mac. If you need to use Java from the command line, you can configure the Java environment variable to make it globally available in the terminal.

jdk version for mac?

How to configure JDK environment variables in Mac system? JDK environment variable configuration tutorial in Mac

Visit the Oracle official website, browse to the bottom menu of the homepage, and then press The picture below shows the operation. (As shown in the picture below:) Click the "JDK DOWNLOAD" button. (As shown in the picture below:) Select "Accept Lisence Agreement" to agree to the agreement.

First install JDK, enter the computer's environment variables, and add a jdk system variable. The specific steps are as follows: Tool: Huawei MateBook1 system Windows software local setting 0. Right-click My Computer and click Properties. Go to My Computer Properties and click Advanced System Settings.

Visit Oracle's official website http://, browse to the bottom menu of the homepage, and then follow the instructions below. (As shown in the picture below:) Click the JDKDOWNLOAD button. (As shown in the figure below:) Select AcceptLisenceAgreement to agree to the agreement.

Open Control Panel (Windows users) or System Preferences (Mac users). Enter "environment variables" in the search box (Windows users) or click the "Environment Variables" button under the "Advanced" tab (Mac users).

In MAC systems, the installation path of jdk is different from windows. The default directory is: /System/Libray/Frameworks /JavaVM.Framwork/. There is a Versions directory under this directory, which contains different versions of jdk.

If there is Chinese in the path or it is installed on the C drive, there may be an error in the environment variable configuration. The path name needs to be renamed or reinstalled on another disk. Simple configuration method→Add the java path directly in front of the PATH variable; end with semicolon. Verify that the configuration is correct.

How to use macbookjdk8

Open the mac terminal console. Enter the current user's home directory, cd ~. Temporary authorization, sudo su. enter password. vi .bash_profile file is not automatically created. Check the JDK installation path.

The first step is to install JDK8. First, you need to install JDK8. JDK is the official environment for developing Android applications. Click here to download (my link is also applicable to Mac computers. If your computer is different, you need to switch).

You can use the artifact to change all apps that do not support retina to support retina. You can search for "Retinizer" on Weifeng.com to download and install the mac version of the android tool. Open the website: http://developer.android .com/sdk/index.html Select the SDK version of Mac OS X to download.

Conclusion: The above is a summary of the answers to the jdk version for mac compiled by this site. I hope it will be helpful to you! If your problem is solved, please share it with more friends who care about this problem~

The above is the detailed content of jdk version for mac?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:shouxicto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!