I mistakenly installed openJDK and I want to uninstall it and revert back to using regular JDK I had before, how do I do this? I can’t find anywhere how I can I uninstall it and go back to JDK.

1 Answer 1


Oh, I just figured it out :) Just go to your Library -> Java -> JavaVirtualMachines and there it will be the JDK and openJDK folders, just move the openJDK folder to the trash and it will go back to the original JDK, when you type in your terminal java -version you’ll see.

You must log in to answer this question.

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