How to install Java

Viewed 39

Here are my steps:

  1. system:

MacOS ARM 64-bit(M1)

  1. Installed program:

Anaconda3, VScode Python3 etc..

  1. Problems:

I setup Java using [Azul Zulu Builds of OpenJDK]

% java -version
openjdk version "15.0.8" 2022-07-19
OpenJDK Runtime Environment Zulu15.42+15-CA (build 15.0.8+4-MTS)
OpenJDK 64-Bit Server VM Zulu15.42+15-CA (build 15.0.8+4-MTS, mixed mode)

After that I type this code to try environment setting

vi ~/.bash_profile

The following message appears in the terminal.

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/moon/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/moon/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/moon/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/moon/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

export PATH=${PATH}:/usr/local/mysql/bin/# rbenv
# rbenv
export PATH=~/.rbenv/bin:$PATH
eval "$(rbenv init -)"

I think it seems to be a problem that occurred after installing ANACONDA3.

OR

Can I configure settings on this page not at terminal?

0 Answers
Related