![]() Then, add your Terminal input from step 3 to this file: # SWITCH TO JAVA VERSION 8 export JAVA_HOME=`/usr/libexec/java_home -v 1. (Optional) To make this the default JDK version, input the following in Terminal: open ~/.bash_profile If you have followed all the steps correctly, the JDK version should correlate with the one you specified in the last step.ĥ. Check your JDK version by inputting into Terminal: java -version For example, if you wish to switch to JDK 8, input the following line: export JAVA_HOME=`/usr/libexec/java_home -v 1.8`Ĥ. For example, “11.0” and “1.8” are the JDK versions available in the example above.ģ. Take note of the JDK version you want to switch to. Once you have installed the appropriate JDK, repeat this step.Ģ. Open the terminal and type the following commands to install Java version 11 on your mac. If you don’t notice the Java version you need to switch to, download and install the appropriate one from here (JDK 8 is represented as 1.8). ![]() Your output should look like: Matching Java Virtual Machines (2): 11.0.1, x86_64: "Java SE 11.0.1" /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home 1.8.0_201, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home We updated our codebase for Caves & Cliffs Part II. For example, applications such as Cassandra will only work with JAVA version 8.įirst, you need to make certain you have multiple JAVA versions installed. Minecraft: Java Edition versions later than 1.18 are no longer supported on Mac OS below version 10.14.5. This can be useful for working with apps which don’t work with updated JAVA versions. Select Install and authenticate to start the installation process. Open the DMG file and double-click the file inside. ![]() This tutorial will guide you on how to switch JAVA versions on your MacOS device. On the next page, click the Download Java button and wait for the DMG installer to download.
0 Comments
Leave a Reply. |