how to set the java home in mac

Solutions on MaxInterview for how to set the java home in mac by the best coders in the world

showing results for - "how to set the java home in mac"
Brendan
18 Feb 2016
1Step-1: open terminal and type ls -al
2if you did not find the .bash_profile proceed with Step-2 else continue with Step-3
3Step-2: touch .bash_profile
4Step-3: open -e .bash_profile
5Step-4: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
6Step-5: save it and close it
7Step-6: source ~/.bash_profile
8Step-7: echo $JAVA_HOME
Chiara
29 Jan 2016
11. Open terminal window
22. Type command: $ vim ~/.bash_profile and Hit Enter
33. Type command: $ export JAVA_HOME=$(/usr/libexec/java_home) and press Escape key for Save changes.
44. Type command: :(colon)wq, It will Save and close .bash_profile file.
55. Type command: source ~/.bash_profile and hit Enter
66. Now we can check the value of the JAVA_HOME variable:
77. Type Command: echo $JAVA_HOME
8 The result should be the path to the JDK installation:
9 /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
queries leading to this page
java home for macsjdk set java home macjava home setup for macmac java homemac set java homeset java home path in macset java home maxwhere is java home path in a machow to set java home variable machow to get java home env var in machow to check java home in macset java home on machow to set java home macset javahome macjava home machow to set the java home in macmac set java home macjava home install macosmacos java home howto set java home path in macwhere is java home folder on macterminal mac env variable javahow to know the java path in macwhere is java home in macset java home version macjava home tool macplease set the java home variable in your environment to match the location of your java installation macdefine java home in machow to find java home macoschange java home path macconfigure java home on osxset java home android macmanually configure java home machow to set java home environment variable on mac profile mac java homejava home setup macupdate java home macmac 24java homejava environment variables macmac change java home versionhow to add different version java home to path macmac set java home environment variablehow to add java home path in macchange 24java home macoshow to change in java home in mac jre home set on mac oshow to locate your java jdk path on macset 24java home macmacos set java homejava home path in macmacos location java homeset the java home path variable macchange java home macmac find java home pathhow to find java 1 8 path in mac oshowto set java hom on macsetup java home in machow to get the jdk path in macjdk 8 mac enviroment pathhow to export java to home env machow do i find java home on mac 3fmacos how to set 22 24java home 22mac default java homemac javahome setuphow to install jdk on mac and set java homehow to set java home to jdk in macmac os navigate to java homehow to set jdk home in macset java variable macexport java path in macjava home jdk macmac set java homesetup java home macsetup java home macoswhy does echo 24java home is not showing on mac os java home and android homehow to set jdk path in macset java home in mac oshow to set java homemac add java to pathset up java home environment variable properly on machow to export java macfind path in mac for javahow to set environment variable for java in macchange environment variables macos javajava home path on mac osmacos java home changejava home path set in macsetting java home on machow to find your java home macosjava home set as jdk maccheck java home mac terminalexport java home in maclocate java home on machow to set java home on mac os xfind java home in macget java home path macmacos change java homemacos add java homeset java home macoshow to chekc java home in machow set java home in macmac install java runtime environmenthow to find in which directory does java exists on a macmac find current java homehow to add java to the environment variable in machow to set java home in machow to find java home in macwhere is java home on macmacos specify java homehow to set java home in mac permanentlyhow to find java home macoshow to set java home on mac step by stepmaking java home in macwhat should java home machow to set jdk path in mac yousetting java home path in macsetting up java home in maccreate java home path in macoshow to know your jdk path on macspecify java home macexport java homehow to find java directory on macjava home change machow to change java path terminalhow to find jdk path in mac default java home location macset java home mac permanentlyhow to add java to system variables in machow to find java path in macset java version home macset up java home macexport java home path on macjava home set path on machow to find full pathname of your java runtime macchange java home machow to set java home in macset java home mac big surconfigurar java home machow to find jdk installed path in macwhat is my current java home link machow to change the java home in macexport java home macset java home macosadding java home to path macadd java to path variables macoshow to update java home in macinstalling java home in path macset java home 1 8 machow to set up java home on macmacos java environment variableson mac os setting java home environment variablemacos how to set java homeexport java home mac osmac where is java homemacos set java home 11how to know java home path in machow to set java in home path machow to change java home in mac 24java home machow to configure java home on macmac set java home and android homeset java home on macset java home variable mac how to set the java home environment variable in machow to access java home maccheck if java home is set macexport java home on macos catalinamac how to set java homeset java home macjava home on macecho java homeupdate java home in macset java home path in macset path of java on machow to setup path for java machow to check java home mac oshow to access java home on maccheck the value of java home in macmac os set java homehow to set java path in macfind java home in macsetting java home for macosset java home in machow unset java home on maccheck were my java home is on macjava home on macosset javahome sdk macpath and java home macjava home macosset javahome inmacfind java home macset up java home path in macadd java home path in macexport java macosjava jre environment variables macexport java home macosjava home setup macget java home maccheck java home macset java path on mac osmac java path settingset java patch in macossetup java home macjava home java path macjava path in machow to set jdk path java home macosjava home 3d machow to change java home version macmac add jdk to pathhow to set path in terminal to run java program in macwhy create java home variables on macmacosx how to setup 2c configure java home and jre homeosx add javahome to pathmac find current jva homehow to add java home in machow to update jdk path in machow to check java home macjava home set machow to find export java home directory in machow to add java home to path in macjava home mac java home on machow to check my java home set or not in macmac install java java homemac os set java homewhat path should i set for java home in maccheck java home in macget java home macoswhere to set java home after installin in machow to find the java home in macconfigure java home in machow to set java home macmac change java homehow to set java home on mac on catalinamac install java set java homejava home how to add on machow to get java installed path in macmac java homemac os set java home globallyset java home from terminal machow to change java home on machow to set java home in mac oshow to change java home in macmac how to find java homehow to check java home on macsetting java home mac catalinahow to check if java home is set up well on macjava home environment variable is not set macmac export java home globallysetting java home in macjava home mac pathhow to check my java home properly set on machow to check whether my java home properly set on mac or notjava environment setup macmacos setup java home variablehow to check java home path macjava home en macmac java add java homeosx set java hhomehow to check java path in machow can i check if i have java home in macchange java home macosjava home and java version are different on macwhere is java home on machow to set path in java in mac my path is not workingmac java home is a directoryhow to set java home in macbook proset java path in machow to set java home on a macset java home in macosjava home bash profile macset up java environment on macmac big sur java homehow to set up environment variable for java macoshow to add java home to path macoshow to change java home on macadd javahome to path osxhow to set java home path in macjava home mac oshow to check java home path on machow to add java home to path machow to set java home and path in machow to check my java home envionment on macjava home mac catalinaset up java environment machow to usnet java home mac oswhere is my java home macmac set java home globallyexport java home for java 11 machow to know java home in macset java environment variable in macset java home macmac find jdk pathset java home in machow to add java home to path in maccheck java path set for maccmd to check the java home in macjava home in macsetup java development environment macosx set java homrmac how to find java installed pathosx put java hhome on pathget jdk path in macconfigure java home machow to replace java home version macfind java path machow to set java home on mac 10 15how to edit java home path in macchange java home on macset correct java home in mac java home mac pathjavahome path update on macosedit java home macset java home mac oshow to get java home in macmac set up java homeshow java home macset java and environment variables in machow to find java home path in macjava home macosmac osx print java homehow to set 24java home macmac current java homefind java home on macwhat does java version return macstart with different java home machow to set correct java home mac oshow to setup java home in macsetup java home on macmac os change java homeset java home macadd java to path machow to set java home in mac terminaljava home path macosjava home setup in macjava version java home on macspecify java home macosjava home environment variable machow to get java home path in maccheck java home macmac terminal set java homejava home mac oshow to add java to path macoshow to find out java home on machow to check java home path in macget the java path in machow to set java home in macbooksetting up java environment on a mchow to get the java home path in macconfig java home in machow find java path in macset java home path on macmac set default java homesetting the java home variable in macset path java home machow to check jdk path in mac 3fhow to export my java home path on machow to check what java home macosconfigure java on macsetup java home in macprint javahome path machow to setup home envirnoment in mac for javaknow the location of javasdk in macjava 1 8 set environment variable mac osset java home macbook proset java home on mcmac java home changemacos add java to pathhow to change the java home in machow to find the java home in macmacos set java homejava home for macinstall java and set java home in machow to put javac in path in macupdate java home in macplease set the java home variable in your environment macsee java home macosconfigure java home on macmacos set java pathopen java home macset java home path macmac java home where is itmac set java home permanentlyhow to get java home pat in macset path and java home machow to find out where my java is installed on macmac setup java java homemac check set java homesetting java home on machow to find java home directory in macjava home is not set mac oshow to set java home on machow to set java path in macbook pro 24java home 3d macadd java home to path macmac find java homehow to change java home maccheck if java path is set machow to set java home on maccheck jdk path on macfind java home macexpost java homewhere is java home machow to set path in java in macjava path on macsetup javava home on macset global java home machow to scho java in system perfence in mac oshow to provide java home path in macjava home for macoswhere to find java home in machow to add java home in macmac install set java homemac change java homehow to find where java home is set in macmac os java homepath variable java macjava path machow to set java home path macosset java home machow to find java home machow to add fonts in linuxmac java home directoryjava home on macospath java installed on macmac set java home to jdkhow to set java to use java home macpermanently set java home machow to fil java home in macmac please set the java home variable in your environment to match the location of your java installation where java home path macjava home in machow to set javabash profile machow to add java home to vsc in machow to find java home path in macmac os properly set java homehow to get java home macmacos find java homecheck java path machow to know my java home path on macmac set java home to 1 8add java path in macset path in java in macset java home to point to the correct jdk location maccheck java home in machow to set the java path in macjava home path macmac set java home java 11set java home to java 8 macset java home mac catalinahow to set the java home in mac