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
32
33
34
| ❯ which java
/usr/bin/java
❯ readlink -f $(which java)
/usr/lib/jvm/java-22-openjdk/bin/java
❯ jenv add /usr/lib/jvm/java-22-openjdk/
openjdk64-22 added
22 added
❯ jenv add /usr/lib/jvm/java-21-openjdk
openjdk64-21.0.3 added
21.0.3 added
21.0 added
21 added
❯ jenv versions
* system (set by /home/bossm0n5t3r/.jenv/version)
21
21.0
21.0.3
22
openjdk64-21.0.3
openjdk64-22
❯ jenv global 22
❯ java --version
openjdk 22 2024-03-19
OpenJDK Runtime Environment (build 22)
OpenJDK 64-Bit Server VM (build 22, mixed mode, sharing)
❯ echo $JAVA_HOME
/home/bossm0n5t3r/.jenv/versions/22
|