Installing java jdk ( java development kit ) on mac os with Java HOME

Publicado em: 10 Agosto 2019
no canal de: Programming Path
97
2

In this episode, we are going to install Java JDK in Mac operating system with JAVA_HOME...

In order to check whether your machine has Java or not...
open your terminal ( command + space and type terminal to open it ) and type JAVA, if you see list of commands, then java is installed in your system ( Keep reading to check whether there is JAVA_HOME is set up or not ).

if there is no java in your in system, then a option opens up, just click on more info and it will redirect you to java jdk download page... now, download .dmg file ...

Once your download is complete, go to download folder and double click on it..it will open up package , just double click on it.. and jdk is installed on your system..


Just type,

JAVA

on your terminal and you will see list of commands ( if so congratulation :) you are ready for next step )


Setting up JAVA_HOME
now, type

echo $JAVA_HOME


if you see empty result, then there is no JAVA_HOME setup on your machine .


Ok! , let's set it up :)

In your terminal, go to your root directory ,just type this command to do so

cd ~

now, check whether there is a hidden folder called .bash_profile

just type

ls -a

in your terminal.

it will lists all those folders on root directory ( including hidden or normal folders )


if there is no .bash_profile folder, then we can create it with this command

touch ~/.bash_profile

now, open this .bash_profile with this command

export JAVA_HOME=$(/usr/libexec/java_home)

make sure there is no space between them otherwise it doesn't work.


and save .bash_profile...now close your terminal and reopen it...

Here if you type

echo $JAVA_HOME

you should see, java installed directory.


Keywords

How to install java in Mac OS Mojave
How to install java on Mac OS Mojave
How to install java jdk java development kit on Mac with java_home
Installing java in Mac OS
Download and install
How to install java jdk on Mac on High Sierra
Java JDK
Kotlin tutorial series


#JavaProgramming,
#KotlinProgrammingTutorialSeriesForBeginners,
#ProgrammingPath


Nesta página do site você pode assistir ao vídeo on-line Installing java jdk ( java development kit ) on mac os with Java HOME duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Programming Path 10 Agosto 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 97 vezes e gostou 2 espectadores. Boa visualização!