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?

2 Answers 2


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.


OpenJDK is more Open and thus also better to debug, fix and configure. It tends to be a bit slower though. Incompatibilities should not arise (anymore) - Android itself can be built using the OpenJDK.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .