this post was submitted on 18 Aug 2023
7 points (100.0% liked)

Linux

1836 readers
1 users here now

Everything about Linux

RULES

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

I don’t have much experience with Java but my solution to this issue was to make a symlink called java8 and a symlink called java16 to run the two concurrently without needing to remember various commands to change versions. It’s worked pretty well so far.

[–] [email protected] 3 points 1 year ago

Could also use Nix as package manager on Ubuntu. It does essentially what you say (symlinking) with guaranteed isolated dependency graphs.