[JAVA] Put jenv on Amazon Linux

yum install java-1.7.0-openjdk.x86_64
yum install java-1.8.0-openjdk.x86_64

git clone https://github.com/gcuisinier/jenv.git ~/.jenv
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(jenv init -)"' >> ~/.bash_profile
jenv add /usr/lib/jvm/jre-1.7.0-openjdk.x86_64
jenv add /usr/lib/jvm/jre-1.8.0-openjdk.x86_64
jenv versions
* system (set by /home/ec2-user/.jenv/version)
  1.7
  1.7.0.121
  1.8
  1.8.0.121
  openjdk64-1.7.0.121
  openjdk64-1.8.0.121
jenv global 1.7
jenv versions
  system
* 1.7 (set by /home/ec2-user/.jenv/version)
  1.7.0.121
  1.8
  1.8.0.121
  openjdk64-1.7.0.121
  openjdk64-1.8.0.121
java -version
java version "1.7.0_121"
OpenJDK Runtime Environment (amzn-2.6.8.1.69.amzn1-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)

Recommended Posts

Put jenv on Amazon Linux
Install tomcat 5.5 on Amazon Linux.
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Install oracle java8 on amazon linux2
Try installing OpenAM on Amazon Linux
Install pyenv on EC2 (Amazon Linux)
[Note] Install Imagick on Amazon Linux2
[Note] Run Django on Amazon Linux 2
Run docker-compose on Amazon Linux2 on ARM64
Introduce Python 3.5.2 environment on Amazon Linux
Run cron on Amazon Linux (set on Linux)
I'll install Ruby on EC2 (Amazon Linux2) 2020
Use Numpy, Scipy, scikit-learn on Amazon Linux
How to update php on Amazon linux 2
Build an LNPP environment on Amazon Linux 2
Learn sshd_config and authorized_keys (on Amazon Linux 2)
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install Anisble on Amazon Linux 2
Run Keycloak on Amazon Linux 2 without Docker
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Put Python3 in Docker container of Amazon Linux2
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Daemonizing processes on Linux
jblas on Arch Linux
Linux (WSL) on Windows
NAT router on Linux
Develop .NET on Linux
Wake on lan on Linux
OpenVPN Summary + Amazon Linux2
Monitor traffic on Linux
Update vscode on linux
Try NeosVR on Linux
Check capacity on Linux
LiveUSB creation on Linux
Linux operation on Win10
Publish your Django app on Amazon Linux + Apache + mod_wsgi
Create an environment for MkDocs on Amazon Linux (attempted)
Compile and install MySQL-python for python2.7 on amazon linux
[AWS EC2] How to install Maven on Amazon Linux 2
How to build a Python environment on amazon linux 2
Announcing the availability of Java 11 LTS on Amazon Linux 2
[AWS] How to expand disk space on Amazon linux
Install Minecraft on Arch Linux
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Put the latest version of Python on linux (Debian) on Chromebook
Try running Amazon Linux 2 on-premises (VM on your local PC).
Install Linux on your Chromebox
Downgrade Mcomix on Arch Linux
Addition of amazon linux swap
Beautifully put snippets on Keynote
Monitor disk usage on Linux
Use Github Desktop on Linux
Install the JDK on Linux
Elixir = Comfortable on Linux Mint
Recording and playback on Linux
Put Python 3.x on Ubuntu
Check TTL on Linux router
Read core voltage on Linux
Easy df command on Linux