![]() You can further export the JAVA_HOME variable in your shell init file as speciifed in the attached SOF thread. Now you can select the java version using:Įxport JAVA_HOME=`/usr/libexec/java_home -v 8` You should see the two versions specified in the response (if not, read further to create a symlink). Install two java versions (change java versions as pleased):īrew install install the following command to see the installed versions: ![]() You can use brew to install multiple java versions and run a command to switch between the versions as required. Assembled from the answers here and How to set or change the default Java (JDK) version on macOS?:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |