Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- AI
- GoogLeNet
- RNN
- version
- Inception V1
- Residual Connection
- GCN
- Peephole Connection
- virtualenv
- ResNet
- python
- classification
- Vanilla RNN
- jupyter
- Generative
- Linear
- Manager
- cnn
- Optimizer
- Regression
- Inception Module
- vim-plug
- Bottleneck Layer
- DL
- Gated Skip Connection
- Skip Connection
- iTerm2
- Skip Connectioin
- sigmoid
- DCGAN
Archives
- Today
- Total
IT Repository
Jenv 설치 및 세팅 본문
- 다양한 JDK 버전을 관리하기 위함
- 유사한 툴로 pyenv, nvm 등이 있음
# [NOTICE!!]
# 1) DO NOT append $JAVA_HOME/bin to PATH manually
# jenv uses own shell scripts in $JENV/shims directory instead
# 2) jenv cannot distinguish same version between different distro
# e.g. openjdk-8 == adoptjdk-8 == oraclejdk-8
# So, recommend you to use multiple versions with same distro
# 1. Install
# use `brew install jenv` on MacOS
git clone https://github.com/jenv/jenv.git $HOME/.jenv
# 2. Configure
echo -e "\n# [jenv]" >> ~/.bashrc
echo 'export JENV_ROOT="$HOME/.jenv"' >> ~/.bashrc
echo 'export PATH="$JENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(jenv init -)"' >> ~/.bashrc
source ~/.bashrc
mkdir -p $JENV_ROOT/versions # to use 'jenv add <JAVA_HOME>' without error: No such file or directory
jenv enable-plugin export # to automatically assign $JAVA_HOME every version changes (USE ONCE!!)
# 3. JDK Install
apt update && apt install -y software-properties-common
apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main'
apt update && apt install -y openjdk-8-jdk openjdk-11-jdk
# 4. Add JAVA_HOME to jenv
# e.g. jenv add /usr/lib/jvm/java-8-openjdk-amd64
# e.g. jenv add /usr/lib/jvm/java-11-openjdk-amd64
jenv add <JAVA_HOME_PATH>
jenv versions
jenv global <GLOBAL_JAVA_VERSION>
jenv local <LOCAL_JAVA_VERSION>
echo $JAVA_HOME # <CURRENT_JAVA_VERSION>
'환경설정' 카테고리의 다른 글
vim 설정 (with vim-plug) (0) | 2022.01.23 |
---|---|
NVM 설치 및 세팅 (0) | 2022.01.23 |
Pyenv 설치 및 세팅 (0) | 2022.01.23 |
Poetry 설치 및 세팅 (0) | 2022.01.23 |
MacOS iTerm2 설정하기 (0) | 2020.04.20 |
Comments