You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Java update 2012-006 did not remove Java plugin from any browser

I successfully installed Java update 2012-006 via Software Update on my iMac running OS X Lion 10.7.5 (German) and it updated the Java runtime to version 1.6.0_37 and removed the Java Preferences application as expected, but it did not remove the Java plugin from any browser!


Safari and Firefox can still use the Java plugin as before.


I repaired permissions, rebooted, manually downloaded Java update 2012-006 and successfully installed it again without any change to the Java plugin: it is still present on my system and fully functional from any browser!


The web is full with messages from users missing the Java plugin after installing this update - but I could not find anything about the plugin not being removed!


Is anyone experiencing the same behaviour under Lion? I thought this would happen only under Snow Leopard...

What should I do now? Can I really trust this "successfull installation" of Java update 2012-006 on my system?


Thanks,


Michael

iMac, Mac OS X (10.7.5)

Posted on Oct 20, 2012 9:35 AM

Reply
22 replies

Oct 20, 2012 7:34 PM in response to TheGoodLife99

You are correct in that I have not found anybody else with your problem, but many who didn't realize it would be removed.


Check /Library/Internet Plug-Ins/ for any alias with "Java" in the name.


If it's not there, perhaps there's a cache somewhere that needs to be cleaned out. Try resetting Safari. If that works, try a similar approach with Firefox.

Oct 20, 2012 8:00 PM in response to MadMacs0

MadMacs0 wrote:


You are correct in that I have not found anybody else with your problem, but many who didn't realize it would be removed...

You can add me to the list. In Mountain Lion I ran the update; the Java Preferences app in Utilities was deleted but the plugins in Firefox and Safari were not. Installing Oracle Java was indeterminate in that their Preference control panel wouldn't run. Copying that app from another partition into ML's Utilities folder got access to Apple's Java back, at which point I discovered that not only hadn't Apple's Java (1.6.0_37) not been deleted, but it had been turned back on (I've been routinely turning it off manually for security). Without the Java Preference app, there's no easy way I know of to tell if it's turned on or off so it looks like the latest update may have made things worse, at least for those of us who's plugins are still untouched.

Oct 20, 2012 8:59 PM in response to FatMac-MacPro

FatMac\>MacPro wrote:


In Mountain Lion I ran the update; the Java Preferences app in Utilities was deleted but the plugins in Firefox and Safari were not.

So you were able to find the the alias in /Library/Internet Plug-Ins/?


Initially that plug-in only worked with Safari. Then something called JavaEmbededPlugin came out which allowed several other browsers to use the Java plugin, as well. Then Mozilla started included within their applications, including Firefox (/Applications/Firefox.app/Contents/MacOS/plugins/JavaEmbeddingPlugin.bundle). I'm not using a current version of Firefox, so I'm not certain whether that is still true or not.

Oracle Java was indeterminate in that their Preference control panel wouldn't run.

Have not heard that problem before.

Copying that app from another partition into ML's Utilities folder got access to Apple's Java back, at which point I discovered that not only hadn't Apple's Java (1.6.0_37) not been deleted, but it had been turned back on

Good to know.

Without the Java Preference app, there's no easy way I know of to tell if it's turned on or off so it looks like the latest update may have made things worse, at least for those of us who's plugins are still untouched.

You can type "Java -version", without the quotes, into Terminal and it should tell you what is active. If none it will say "Unable to locate a Java Runtime to invoke." but I know of no way to use it to disable it if active.


Others who's plugins were deleted have confirmed that 1.6.0_37 was still installed and active after obtaining the Java 7 plugin.

Oct 21, 2012 4:28 AM in response to FatMac-MacPro

Thanks for your feedback showing that I'm not alone!

There must be something wrong with this update for Lion and Mountain Lion...


I didn't install Oracle's Java 7 because I don't need it.

That's why I cannot say anything about their preference pane working or not on my system.


I sent feedback to Apple today about this strange behaviour.


May be there are other people out there reading this thread with similiar experiences?

Oct 21, 2012 6:27 AM in response to TheGoodLife99

TheGoodLife99 wrote:


Yes, the alias "JavaAppletPlugin.plugin" is still in "/Library/Internet Plugins/

So if you want to disable the plugin, drag the alias to the trash.

And yes, this file still exists in the Deploy bundle, too.

It is supposed to stay there. The update does not actually remove Java 6, it only removes the alias (actually a symlink, but it acts in the same manner). You should not remove the Deploy bundle.

Oct 21, 2012 7:08 AM in response to MadMacs0

Thanks - I will keep the symlink in place and I won't touch the Deploy bundle, because I need the plugin in Safari and I don't need Oracle's Java 7 for now...


If the plugin is supposed to stay in the Deploy bundle, this could help others who miss the plugin - they could just recreate the symlink, right?


To summarize I think we can state, that the Java update 2012-006 for Lion and Mountain Lion sometimes leaves the symlink in /Library/Internet Plugins/ untouched.

The circumstances that lead to this behaviour are still unknown.


The install log in Console shows that the scripts to create links and to delete obsolete files ran okay, but there was an error with the "postinstall" script. In spite of this the installation succeeded:


Oct 20 16:24:52 michaels-imac Installer[284]: Java für OS X 2012-006 Installation Log

...

Oct 20 16:25:56 michaels-imac _securityagent[305]: Running Install Scripts . . .

Oct 20 16:25:56 michaels-imac _securityagent[307]: Begin script: createlinks

Oct 20 16:25:56 michaels-imac _securityagent[309]: End script: createlinks

Oct 20 16:25:56 michaels-imac _securityagent[310]: Begin script: deleteObsoleteFiles

Oct 20 16:25:56 michaels-imac _securityagent[314]: End script: deleteObsoleteFiles

...

Oct 20 16:25:56 michaels-imac _securityagent[318]: Running Install Scripts . . .

Oct 20 16:25:56 michaels-imac _securityagent[320]: Begin script: postinstall.sh

Oct 20 16:25:56 michaels-imac installd[295]: postinstall: launchctl: Error unloading: com.apple.mrt.uiagent

Oct 20 16:25:56 michaels-imac installd[295]: postinstall: com.apple.mrt.uiagent: Invalid argument

Oct 20 16:25:56 michaels-imac installd[295]: postinstall: launchctl: Error unloading: com.apple.mrt.uiagent

Oct 20 16:25:56 michaels-imac installd[295]: postinstall: launchctl: Error unloading: com.apple.mrt

Oct 20 16:25:56 michaels-imac _securityagent[334]: End script: postinstall.sh

...

Oct 20 16:25:56 michaels-imac installd[295]: Installed "Java für OS X 2012-006" ()

...

Oct 20 16:25:56 michaels-imac Installer[284]: Displaying 'Install Succeeded' UI.


Does anybody know what "com.apple.mrt.uiagent" and "com.apple.mrt" stands for?

Obviously the "postinstall" script provides an invalid argument (at least on my system).


I have no idea if this is related to the Java Plugin symlink not being removed...

Oct 21, 2012 10:35 AM in response to TheGoodLife99

TheGoodLife99 wrote:


Thanks - I will keep the symlink in place and I won't touch the Deploy bundle, because I need the plugin in Safari and I don't need Oracle's Java 7 for now...


If the plugin is supposed to stay in the Deploy bundle, this could help others who miss the plugin - they could just recreate the symlink, right?

Exactly. That is what Oracle tells us in this FAQ.

Does anybody know what "com.apple.mrt.uiagent" and "com.apple.mrt" stands for?

Obviously the "postinstall" script provides an invalid argument (at least on my system).

Yes, it stands for Malware Removal Tool (as far as we have been able to determine). It was used first during the MacDefender and later during the Flashback malware eras to get rid of any trace of those infections. When it was finished it was supposed to completely delete itself, so this problem goes back a few months or years to when you ran the Security or Java update involved and it too must have failed. I'd have to go back a ways to figure out exactly where those components were located, almost certainly one of your LaunchAgent or LaunchDaemon folders with the three Library folders.

Oct 21, 2012 11:37 AM in response to MadMacs0

TheGoodLife99 wrote:


Thanks - I will keep the symlink in place and I won't touch the Deploy bundle, because I need the plugin in Safari and I don't need Oracle's Java 7 for now...


If the plugin is supposed to stay in the Deploy bundle, this could help others who miss the plugin - they could just recreate the symlink, right?



MadMac,

I have uninstalled Java 7 since it doesn't run the apps I want it to. However, when I try to run the command line:


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


in terminal, I just get the message "no such job". Any ideas? I'm trying to get Java 6 running again.

Oct 21, 2012 12:11 PM in response to MadMacs0

Caledonia80 wrote:

I have uninstalled Java 7 since it doesn't run the apps I want it to. However, when I try to run the command line:


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


in terminal, I just get the message "no such job". Any ideas? I'm trying to get Java 6 running again.

Yes, leave out the "% " before sudo and try again. Not sure why Oracle doesn't know most of us use bash in Terminal (the "$ " prompt) or maybe they want us to switch?

Oct 21, 2012 12:40 PM in response to MadMacs0

Thanks for your reply Mad.

I tried as you suggested, and was hopeful at first since this time I was asked for my system password. However, having entered that, I just got the message:


ln: Plug-Ins/JavaAppletPlugin.plugin: No such file or directory


Basically I don't know what I'm doing, but this makes sense since to uninstall java 7 I moved the javaappletplugin.plugin to trash, as per the instructions on Oracle's website.

I'm lost, lol. First I did the mac 2012-006 update, then I installed Java 7 JRE from Oracle, then Java 7 JDK after someone suggested I needed that. Currently I think both are uninstalled, yet when I enter java -version in terminal I still get the message:


java version "1.7.0_09"

Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)


As I understand it Java 6 is still on my mac (the update didn't erase it, just the ability to use it in browsers). I suppose I'm asking what I should try next to reactivate Java 6 in my browsers. Any help from anyone is appreciated.

Oct 21, 2012 1:01 PM in response to Caledonia80

Caledonia80 wrote:


I tried as you suggested, and was hopeful at first since this time I was asked for my system password. However, having entered that, I just got the message:


ln: Plug-Ins/JavaAppletPlugin.plugin: No such file or directory

Sorry, I really thought that Oracle knew what they were doing so didn't check and don't believe I can test it with my setup. They forgot to escape the space between Internet and Plug-Ins.


OK, I tested it as best I could since I'm still on Java 5, but this seems to work:


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

Oct 21, 2012 2:05 PM in response to MadMacs0

Thanks again for your efforts, Mac.

I managed to get rid of Java 7 completely now I think (terminal was previously giving me the message:

java version "1.7.0_09"

Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)


Now when I enter java -version in terminal I get:

java version "1.6.0_37"

Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)

Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)


I then tried the command you suggested (sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin) and it seemed to work, in that I notice JavaAppletPlugin.plugin has re-appeared in the internet plug-ins file. Yet when I use any browser to try to run a java app, I just get the "missing plug-in" message all over again, with a link to download Java 7 from Oracle.

Any ideas? Thanks again.

Oct 21, 2012 2:38 PM in response to MadMacs0

Thanks MadMacs0,


you are right: MRT is Apple's Malware Removal Tool included with Apple's Java updates since 2012-003.


I found a very detailed article about it here:

http://reviews.cnet.com/8301-13727_7-57413354-263/a-look-at-apples-flashback-rem oval-tool/


I verified that no trace of MRT is left on my system.

This means it must have run successfully at some point in time - at least it removed itself completely from my system.


Good to know...

but I think this is not related to the Java Plugin symlink not being removed.


By the way - it's not only the Java Plugin symlink , on my system the Java-Web-Start application still lives in /System/Library/CoreServices ... and it was updated yesterday with the time stamp of my Java update 2012-006 installation. As far as I know most people are missing the Java-Web-Start application, too...


It seems I have a full Java 1.6.0_37 RTE up and running with Internet plugin and Web Start.

I still don't understand why this happened on Mac OS X Lion 10.7.5 - but I'm getting confident that the installation is okay...

Oct 21, 2012 2:46 PM in response to MadMacs0

Caledonia80 wrote:


I then tried the command you suggested (sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin) and it seemed to work, in that I notice JavaAppletPlugin.plugin has re-appeared in the internet plug-ins file. Yet when I use any browser to try to run a java app, I just get the "missing plug-in" message all over again, with a link to download Java 7 from Oracle.

I probably should have mentioned that I may have gotten the same results when I ran the test because my plug-in resides in the "Deploy.bundle" rather than the "CoreDeploy.bundle" with Java 5. When I click on the JavaAppletPlugin.plugin file and type Command-R to show the original linked file, it gives me an error telling me the alias is broken. So it produces the symlink file whether it finds the original or not, which I consider to be a bug in the shell code. Same thing happens with both bash and tcsh, if anybody is interested.


But I know others who have verified that their plugin was still in the bundle, so if you get the same error we need to figure out where your actual plug-in is if not in CoreDeploy. First take a look in /System/Library/Java/Support/ at what bundles you find (I have CoreDeploy.bundle, Deploy.bundle & VisualVM.bundle). For at least the first two, right-click/control-click on the file and choose "Show Package Content" from the popup CM. Now search through the various folders until you find "JavaAppletPlugin.plugin" and note the full path as well as the version number.


Message was edited by: MadMacs0

Java update 2012-006 did not remove Java plugin from any browser

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