nativescript jdk11

Hello it’s coder by gleentech. Today the day tip is how to install openjdk 11 with brew to get nativescript worked. I needed to do this because I am coding a professional application. Then this was my solution.

brew cask install java

 brew tap adoptopenjdk/openjdk
 brew cask install adoptopenjdk11
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)

alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'

Do everything on ~/.profile then reload the file

source ~/.profile

Then type java11 on terminal and type at last

java11 or java8

Comments

Leave a Reply

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

four + fourteen =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.