Change the default Java Version on macOS

When we have installed more than one Java version in macOS and want to work with another JDK, changing the Java version is straightforward, but changes will be saved or reflected until the Terminal is opened. It will show the default Java version when you have closed the terminal and opened it again. so it’s essential to set the default java version if you want to reflect it permanently. how to change the java version on Mac

Open a new Terminal window and type “/usr/libexec/java_home -V” to show all Java Versions.

List of java version

 

Open the terminal and use the command “~/.bash_profile”

#SWITCH TO JAVA VERSION 11
export JAVA_HOME=`/usr/libexec/java_home -v 11.0`

Save and close the file. You can try to reopen the terminal and check the default Java -Version

6 thoughts on “Change the default Java Version on macOS”

  1. [4183]tk11 Official Login | অনলাইনে ক্যাসিনো গেম ও অ্যাপ ডাউনলোড,tk11 সাইটে আজই যোগ দিন। এখানে বিকাশ দিয়ে টাকা ডিপোজিট করে সহজেই স্লট গেম খেলার নিয়ম শিখে নিতে পারবেন। দ্রুত অ্যাপ ডাউনলোড করে খেলা শুরু করুন। visit: tk11

  2. [8368]bdbaji Official Login | সেরা অনলাইন casino সাইট ও দ্রুত পেমেন্ট,bdbaji অফিসিয়াল লগইন করে উপভোগ করুন সেরা অনলাইন স্লট গেম। দ্রুত বিকাশ পেমেন্ট এবং অ্যাপ ডাউনলোড করে আজই আপনার যাত্রা শুরু করুন। visit: bdbaji

  3. [1906]jeta9 Official Login | বিকাশ ডিপোজিট ও সেরা অনলাইন স্লট গেমস,jeta9 অফিসিয়াল সাইটে লগইন করে সেরা লাইভ ক্যাসিনোর অভিজ্ঞতা নিন। অ্যাপ ডাউনলোড করুন এবং বিকাশ দিয়ে দ্রুত ডিপোজিট করে গেম খেলা শুরু করুন। visit: jeta9

Leave a Comment

Your email address will not be published. Required fields are marked *