Java from Oracle never has been OpenSource.
There exists an OpenJDK which always has been.
You just choose one of the magnifold of builds of the OpenJDK (built by Alibaba, Amazon, IBM, Adopt, …)
This might help: Differences between Oracle JDK and OpenJDK