

If you need more assistance or want to use a package manager to install Sun Java, you'll need to refer to the documentation for your particular distro.

(OpenJDK is now bundled with Android Studio which includes the SDK as well as a development environment) and you'll find complete instructions to get it installed at the OpenJDK website. OpenJDK also works for most things you'll need to do with the SDK. You can find x86 and 圆4 binaries for Sun Java from Oracle at their website.

On a Mac, it's pretty easy because you'll already have it installed unless you uninstalled it.For most things, you'll be doing with the SDK, both Open Java and Sun Java from Oracle (yes, that Oracle) will work. You'll need a working version of Java to run the SDK components. Source: Android Central (Image credit: Source: Android Central)
