Quick history lesson. Sun Systems developed JAVA, the write-once-run-everywhere language. It powered much of the early web. Not only the web entire ERP systems were developed in JAVA. The entire IT industry depended on the runtime. The JAVA SE become one of the most common pieces of client and server software. Enter Oracle purchasing Sun Systems. Guess what wasn’t free anymore. Oracle now sells licenses for JAVA SE. What if you don’t want to pay for such a basic yet critical piece of software?
Well, there’s OpenJDK which is the open-source alternative to Oracle’s JAVA SE. It’s supported by the community. AWS Corretto is more akin to the Sun distribution of JAVA. It’s a downstream version of the OpenJDK. Corretto is free for use and supported by Amazon