Follow the link to install Java SE Development Kit 8.
Download ZIP or TGZ package, and expand it.
Note: Third-party packages may not provide the latest version. Please make sure to report any issues with these packages to the relevant maintainers.
$ brew install [email protected]
$ port install sbt