Ubuntu – OpenJDK vs. Oracle JDK for Android Studio


When I run Android Studio with OpenJDK installed I get a warning recommending the use of Oracle JDK. Is Oracle JDK actually better or is it fine to just stick with OpenJDK? Installing Oracle JDK seems like a hassle compared to the simple sudo apt-get install default-jdk for OpenJDK. Are there any differences between the two I should be worried about?

Best Answer

I think that it depends on what you are going to be doing. There are probably some compatibility issues for random features. I have not run into any myself, but you may be better off using the JDK from Oracle. Webupd8 does a great job distributing the JDK via a PPA which makes it pretty easy to install on Ubuntu.