MacOS Java Control Panel Missing on Mojave

2020-08-23 18:04发布

问题:

I recently updated to Mojave and updated to Java 11 JDK and noticed that my Java Control Panel in my System Preference is missing. I tried doing a general search for it but nothing shows up. I also check if its Java JDK and JRE is install and they are. Is there a way to add it back to my System Preferences or if its possible to locate it in my systems?

回答1:

They removed Java Control Panel in Java 11.

Open this release notes Removal of Java Deployment Technologies, it says

The Java Plugin and Java WebStart technologies that were deprecated in JDK 9 and marked as candidates for removal in JDK 10, have now been removed. Please note that the Java Control Panel, which was used for configuring the deployment technologies, has also been removed along with the shared system JRE (but not the server JRE) and the JRE Auto Update mechanism. More details are available in this white paper.

Also, If you go through this web page, JDK 11 Is Released!

There is the last bullet point where, it says

The deployment stack, required for Applets and Web Start Applications has been removed. This includes the Java Control Panel used for configuring the deployment technologies, the shared system JRE (but not the server JRE), and the JRE Auto Update mechanism.



回答2:

Here's a solution that worked for me:

  1. Open a new finder window and navigate to /Library/Internet Plug-Ins/. There you will find a file named JavaAppletPlugin.plugin.
  2. Control + Click this file and choose Show Package Contents from the contextual menu.
  3. Inside the package, navigate to /Contents/Home/bin/.
  4. Double click the ControlPanel file to display the Java Control Panel. Change any settings as you wish and then save it.
  5. From now on, the panel will be available as always from “Apple” menu > System Preferences...

Note: if you don't find the JavaAppletPlugin.plugin file inside the /Library/Internet Plug-Ins/ folder, open the Terminal.app and create a symlink from the original:

sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

Reference



标签: java macos