Comment by Schnitz
Anywhere where the correct Java version is installed correctly, important caveat
Anywhere where the correct Java version is installed correctly, important caveat
This has no longer been the case for C# for 10 years since the release of .NET Core and (now) .NET. The runtime is no longer bundled with the OS.
This is only true for older .NET Framework applications.
You can just supply a minimized runtime for your program, which is the primary way to ship Java programs for quite some time now.