Java Se Development Kit 8 - Downloads (oracle.com)

Two options are available for installation. An installation from the Snap Store (recommended) with the benefit of an automatic update, or from a deb package with external dependencies downloaded from public locations (in this case the application can only be updated manually).