How to set or change the default Java (JDK) version on OS X?

后端 未结 28 2309
渐次进展
渐次进展 2020-11-22 15:55

How can you change the default version of Java on a mac?

28条回答
  •  粉色の甜心
    2020-11-22 16:17

    macOS El Capitan or newer will choose the higher version of the JDK available in /Library/Java/JavaVirtualMachines, so in order to downgrade you may rename the file Info.plist to something else like Info.plist.disabled so that the OS will choose a previous version.

提交回复
热议问题