However, I often keep a collection of older versions and different patch levels in my home directory. These work fine for testing with the non-openjdk distributions for compatibility purposes.
I wasn't familiar with the icu library issue, so maybe it is something straightforward, but it seems odd that the fix was an env var. I certainly wouldn't say something like "welcome to linux" because of a scenario like this.
And they are obviously going to work because you’ve satisfied all the main OpenJDK dependencies through the install with your package-manager.
If you repeat your own scenario with the .NET SDK instead, you will have the exact same experience.
Its how I did it before the distribution packaged OpenJDK, which really wasn't that long ago.
The Ubuntu repos suggests there are more dependencies than just plain libc.
https://packages.ubuntu.com/hirsute/openjdk-11-jre
Could it be you have those dependencies satisfied through other things you’ve already installed?
> Do you have a reference to your claim that Java requires libssl?
None at all. It was an example of something I found it reasonable it might depend on, since .NET also depends on that on Linux :)
I think that’s a pretty far fetched complaint. There are tons of software out there on Linux which will break if you don’t satisfy their dependencies.
I’m sure the OpenJDK-tarball has some system-wide dependencies too (libssl?), but you can’t tell that because you probably installed it as root, using a package-manager instead.
If you do the same with the .NET SDK (use root, install via package-manager) you will find everything working equally smooth.