Apple Event: May 7th at 7 am PT

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

Java SE 6 Runtime unavailable on Mountain Lion

I bought OS X Mountain Lion from the App Store today (previously on Lion 10.7.4) and it downloaded and installed itself apparently without issue. However, when I checked back on my machine (Mid 2011 MacBook Pro) after letting it boot up properly I had a message telling me that I needed to install the Java SE 6 Runtime environment - so, I click yes and wait for it to find and install the software, only for it to fail and complain that the software is currently unavailable.


I've tried using the Applications > Utilities > Java Preferences application; I've tried going in to the terminal and typing 'java -v'; I've tried rebooting (and shutting down, then turning back on again); I've tried using Disk Utility to verify the disk - all to no avail: I keep getting the same outcome. I've had a look on the Java website to see if I could get the software there, but it just tells me to use the Apple Software Update feature. Sadly, I can't use the Software Update feature, as it takes me to the Mac App Store now (which doesn't work either, as it complains about being unable to verify its connection with itself).


Anyone got any clue how to solve this? I've looked at other threads here and also browsed other sites, but the only solutions suggested were the ones I listed above.


Thanks.

MacBook Pro, OS X Mountain Lion

Posted on Jul 25, 2012 11:38 AM

Reply
58 replies

Oct 21, 2012 10:10 PM in response to Carlo TD

It states that the folowing command restores Apple's Jave 6:


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


But the correct command is:


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


Note that the source file is slightly different than the one mentioned in the Oracle instructions. They are also missing a backslash.

Oct 22, 2012 2:33 AM in response to D. Rackerby

From my understanding... starting with Mountain Lion Apple dumps old version of java. There is this transition stage that both Apple and Oracle are offering updates. However if you installed Mountain Lion on your machine then it is your responsiblity to download the Oracle Java from the Oracle site.

Now from my understanding fromthe article located at (and I am not lookong at the command lines... I do not mess ith that at all); the last three questions are the most important. Especially the one that reads:

...Q: What happened to the Java Preferences app in Application -> Utilities?

A: The Java Preferences app was part of Apple Java installation and is not used by Oracle Java. Therefore, OS X releases from Apple that do not include Apple Java will not include Java Preferences.

One of the functions of Java Preferences was to set the current version of the JRE. Under Oracle Java, only a single version of the JRE can be installed at a time. For more information, see JRE 7 Installation for Mac OS X.

To access the Java Control Panel, click the Java icon in the System Preferences panel. If the Java icon is not present (under the Other category) in System Preferences, you do not have an Oracle JRE installed.

... (my take is that this app in the utlity folder is not needed anymore. Just the app now located in the system preferences.)

Oct 22, 2012 2:44 AM in response to karlfromhaymarket

karlfromhaymarket wrote:


I downloaded the updated directly from the Apple support site:


http://support.apple.com/kb/DL1515


Seems safer than using the macupdate.com site!

I believe anyone that downloaded this file, will need to reinstall ML. Hence it is not availabe anymore on the Apple site. If you were able to capture the file before they removed it, I would suggest you reinstall ML by holding down command+R while the computer is starting up.

Oct 25, 2012 8:52 PM in response to ericacm

Apple posted this solution a few days ago and it fixed my previously posted problem (http://support.apple.com/kb/HT5559). Since Apple posts have a way of disappearing, the steps are:


In an Administrator Account, open Terminal, located in the Utilities folder.

Enter this command, then press the Return or Enter key:

sudo mkdir -p /Library/Internet\ Plug-Ins/disabled

Enter password


Enter this command, then press the Return or Enter key:

sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled


Enter this command, then press the Return or Enter key:

sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin


To re-enable Java SE 6 Web Start, enter this command, then press the Return or Enter key:

sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws


RD

Nov 1, 2012 1:47 PM in response to Equus

You can use terminal commands out line in article ht5559 to activate java SE6 as sometimes it is disabled by java 7,


heres the commands



  1. Open Terminal, located in the Utilities folder.
  2. Enter this command, then press the Return or Enter key:
    sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
  3. Enter this command, then press the Return or Enter key:
    sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
  4. Enter this command, then press the Return or Enter key:
    sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
  5. To re-enable Java SE 6 Web Start, enter this command, then press the Return or Enter key:
    sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws

Java SE 6 Runtime unavailable on Mountain Lion

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