search
HomeSystem TutorialMACHow to change jdk version on mac?

Introduction: Many friends ask about how to lower the JDK version on Mac. This article will provide detailed answers for your reference. hope that it can help us! Please read on!

How to configure JDK environment variables in Mac system? Tutorial on configuring JDK environment variables in Mac

1. Open the Oracle official website, find and click the "JDK DOWNLOAD" button in the bottom menu of the homepage (as shown in the figure) shown). 2. In the pop-up page, find and select the "Accept License Agreement" option to agree to the agreement (as shown in the figure).

2. Click the JDK DOWNLOAD button: Select Accept Lisence Agreement to agree to the agreement: Click the download link behind Mac OS X x64: After the download is complete, click the installation package and follow the prompts to complete the installation.

First, to install the JDK, you can follow these steps: 1. Open the computer properties. Right-click My Computer and select Properties. 2. Enter advanced system settings. In the Computer Properties window, click Advanced system settings. 3. Add system variables. In the Advanced tab of the System Properties window, click the Environment Variables button. 4. Find the system variables area. In the environment variables window, find the system variables area and click the New button. 5. Add JDK variables. In the New System Variable window, enter the variable name "JDK_HOME" and the variable value is the JDK installation path. 6. Confirm the settings. Click the OK button to save the settings. In this way, the JDK system variables are successfully added.

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

The first one is to specify the path of JDK, and the second one is to specify the path of JRE. If you do not want to use the default path for installation, please choose a different path for installation. It is recommended to install these two in the same directory. To configure JAVA environment variables, please open "This PC" on your computer, right-click the mouse, select "Properties" to open system settings, and then click "Advanced System Settings".

In the bottom menu of the homepage when visiting Oracle's official website, follow the prompts in the figure below: Click the JDK DOWNLOAD button. Then, select Accept License Agreement on the pop-up page to agree to the agreement.

How to downgrade java

1. Reinstalling a lower version of jdk can make the java version lower.

Make sure that the JDK version installed on your new computer is consistent with the version used in the original project, because different versions of JDK may have compatibility issues. You can try adjusting the JDK version and see if that solves the problem.

Java's lightweight lock is designed to solve the efficiency problem when multi-thread competition occurs. Compared with heavyweight locks, it has some advantages. In actual use, we need to choose different lock types according to specific situations, and may involve mechanisms such as lock promotion and downgrading. These lock mechanisms will have a certain impact on program performance. Therefore, we need to weigh the pros and cons and choose the appropriate lock to ensure multi-thread security and program performance.

4. The method is to enter "mount-uw/" in the Recovery mode terminal. The third step is to enter the chflagsnoschg/usr/libexec/java_home command to change the flag bit of the java_home folder to "noschg". Then enter rm/usr/libexec/java_home to delete the folder.

5. You can try the following methods: replace the starter, HMCL is recommended. Replace the JAVA version (java7, java8) (32x, 64x) and downgrade the graphics driver (the latest version of the graphics driver of geforce is known to cause a crash, and subsequent versions may fix this bug). Reduce memory (1024).

Why can’t eclipse be opened on Mac after jdk1.7 is installed, but jdk1.8 can be opened?

After installing jdk, eclipse cannot be opened. The possible reasons are as follows: the correct jdk environment variables are not configured. . Recheck whether the environment variables are written correctly. Check your configured JDK environment variables. The eclipse you installed is win32-bit, and the jdk must also be 32-bit, otherwise it will not start.

This is a Java virtual machine error. Check the configuration of the Java environment online to see if your Java environment is configured properly. If not, to learn Java, you must first learn to configure the environment. Secondly, the jdk installed is not compatible with the system. You need to download the jdk with the corresponding number of bits. The jdk7 is installed, but the installation path contains Chinese.

Eclipse cannot be opened because the memory on the machine is too small.

You must first install JDK and then install Eclipse. Finally, you must configure the path. Configuring the path method: My Computer Properties - Environment Variables in Advanced - From System Variables - Find the Path item and double-click it. Then open the installed bin in the jdk folder and copy this directory.

How to change jdk version on mac?

Conclusion: The above is all the content about reducing the jdk version of mac introduced by this site. I hope it will be helpful to everyone. If you want to know more about this For content, please remember to bookmark and follow this site.

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

Statement
This article is reproduced at:首席CTO笔记. If there is any infringement, please contact admin@php.cn delete
ip与mac绑定什么意思ip与mac绑定什么意思Mar 09, 2023 pm 04:44 PM

ip与mac绑定是指将特定的IP地址与特定的MAC地址关联起来,使得只有使用该MAC地址的设备才能够使用该IP地址进行网络通信。ip与mac绑定可以防止被绑定的主机的IP地址不被假冒,前提条件:1、MAC地址是唯一的,并且不可假冒;只能绑定与路由器直接相连的网络上的主机(也就是主机的网关在路由器上)。

mac版下载是什么意思mac版下载是什么意思Mar 06, 2023 am 09:52 AM

mac版下载的意思是当软件在选择安装时,选择MAC版下载;Windows版和MAC版是两个不同的操作系统,所以大多数软件在选择安装的同时需要选择Windows版还是MAC版。

mac鼠标滚轮相反怎么办mac鼠标滚轮相反怎么办Mar 16, 2023 pm 05:44 PM

mac鼠标滚轮相反的解决办法:1、打开mac电脑,点击屏幕的苹果标志,然后选择“系统偏好设置”;2、在“系统偏好设置”窗口中,选择“鼠标”;3、在“鼠标”窗口中,将“滚动方向:自然”前面的勾去掉即可。

修复文件共享在 MacOS Ventura 中不起作用修复文件共享在 MacOS Ventura 中不起作用Apr 13, 2023 am 11:34 AM

修复 SMB 文件共享在 MacOS Ventura 中不起作用的问题从  Apple 菜单打开 Mac 上的“系统设置”应用程序转到“常规”,然后转到“共享”找到“文件共享”的开关并将其关闭通过转到  Apple 菜单并选择重新启动来重新启动 Mac重新启动后,返回共享系统设置面板并将“文件共享”重新设置为打开位置像往常一样恢复文件共享,它应该按预期工作如果 MacOS Ventura Mac 与另一台 Mac 或设备之间的文件共享突然再次停止工作,您可能需要在几天后或随机重复此过程。

如何防止 Mac 在显示器关闭时进入睡眠状态 (MacOS Ventura)如何防止 Mac 在显示器关闭时进入睡眠状态 (MacOS Ventura)Apr 13, 2023 pm 12:31 PM

显示器关闭时如何防止 Mac 休眠如果您希望 Mac 显示器能够在整个计算机不进入睡眠状态的情况下关闭,请在此处进行适当的设置调整:下拉  Apple 菜单并转到“系统设置”转到“显示”点击“高级...”切换“防止显示器关闭时电源适配器自动休眠”的开关现在 Mac 显示屏可以关闭,同时防止 Mac 本身进入睡眠状态。这可能主要与 Mac 笔记本电脑用户相关,但即使是那些没有 MacBook 的用户也可能会发现该功能很有用。

mac克隆是什么意思mac克隆是什么意思Jan 31, 2023 am 10:33 AM

mac克隆全称mac地址克隆,是固化在网卡上串行EEPROM中的物理地址,通常有48位长。mac克隆一般应用在路由器上,用户在用电脑直接拨号上网,后来又加了个路由器,通过路由器来实现多台电脑同时上网,这时要用到mac地址克隆了,就是把当前的电脑的mac地址克隆到路由器中去,因为运营商是把你的电脑mac地址绑定你的账号的,所以得克隆以后才能用。

mac的shift键是哪个键mac的shift键是哪个键Mar 13, 2023 pm 02:20 PM

mac的shift键是fn键上方、caps lock键下方的一个键,该键在键盘最左侧,由右下往上数第2个键;shift键是键盘中的上档转换键,可以通过“Ctrl+Shift”组合键来切换输入法。

mac解压rar用什么软件mac解压rar用什么软件Mar 03, 2023 pm 04:18 PM

mac解压rar的软件:1、The Unarchiver,是一款完全免费、小巧,而且非常易于使用的压缩、解压缩小工具;2、Keka,是一款免费、实用的压缩、解压缩工具,支持解压缩RAR格式的压缩包;3、360压缩大师,是一款免费的压缩、解压缩软件,完全支持RAR文件解压;4、MacZip,支持包括RAR在内的超过20种压缩格式的解压;5、BetterZip;6、FastZip。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use