Skip to content

Instantly share code, notes, and snippets.

@schnell18
Created October 8, 2016 13:26
Show Gist options
  • Select an option

  • Save schnell18/bcb9833f725be22f6acd01f94b486392 to your computer and use it in GitHub Desktop.

Select an option

Save schnell18/bcb9833f725be22f6acd01f94b486392 to your computer and use it in GitHub Desktop.
MacOS X remove Java 9
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
@impaler
Copy link

impaler commented May 7, 2018

Cheers, this saved me a hassle of reverting back to an older Java version.

I ended up installing java via homebrew brew tap caskroom/versions then brew cask install java8 more here https://www.lonecpluspluscoder.com/2017/10/08/installing-other-versions-of-the-java-jdk-via-homebrew/ and adding it to JAVA_HOME similar to others here.

@edufolly
Copy link

Works like a charm!

@komendantaa
Copy link

Many Thanks!!!

@AndreFSilveira
Copy link

Thanks :)

@muralibala
Copy link

Awesome. Thanks a lot.

@Salomao123
Copy link

sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9(your version).jdk
thanks for help!

@Justin-Schmitz
Copy link

You sir are a LEGEND!

@cyb3rsalih
Copy link

in Turkish we say "ADAMSIN"
Thank you so much!

@care4tauren
Copy link

Whaaat... And that's it? People have you ever heard of time machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment