"Java for macOS 2017-001 can't be installed on this disk: A newer version of this package is already installed". Cannot install common fix to: "To use the java command-line tool, you need to install a JDK" after updating to Catalina

So far, after updating macOS (Sierra, Capitan, Yosemite, etc..) I have dealt with the "To use the java command-line tool, you need to install a JDK" pop up by installing the Java for OS X 2017-001 aka Apple’s version of Legacy Java Command-line tool. However, after installing Catalina, this fix cannot be installed. During installation, I get: "Java for macOS 2017-001 can't be installed on this disk: A newer version of this package is already installed".

See screenshot:


I have tried uninstalling Java using the command lines:

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane

sudo rm -fr ~/Library/Application\ Support/Oracle/Java


But this does not seem to work. I get the same "Java for macOS 2017-001 can't be installed on this disk: A newer version of this package is already installed" message.

Has anyone else ran into the same issue?

Posted on Oct 12, 2019 1:56 PM

Reply

Similar questions

2 replies

Oct 16, 2019 12:06 PM in response to GusRB

Hey, found this tutorial.


It helped me.


I had to mount using UI and executed the modifier commands on terminal on /Volumes dmg folder.

It was not generating the pkg on desktop automatically.


Hope it helps you too.

Good luck!


https://www.harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/23780/Mac-OS-Catalina-1015-ENVIIDL-and-Legacy-Java-6-Dependencies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"Java for macOS 2017-001 can't be installed on this disk: A newer version of this package is already installed". Cannot install common fix to: "To use the java command-line tool, you need to install a JDK" after updating to Catalina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.