Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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

Enable Oracle Java

Okay, Java is bad but I NEED ONE and I want to be sure that I could enable it when neede and it will work! How do I do this? I got the latest version java.com and installed it; checked Safari preferences — "Enable Java" IS enabled. Restarted my Mac with OSX 10.8.2 installed but **** no! — it still doesn't run Java plugin and says "The version of “Java” on your system does not include the latest security updates and has been blocked. To continue using “Java”, download an updated version from Oracle’s website." How do I enable this darn plugin??

MacBook Pro, OS X Mountain Lion, 16Gb RAM

Posted on Jan 12, 2013 4:04 PM

Reply
16 replies

Jan 12, 2013 5:05 PM in response to macjack

But that's what I downloaded and installed — Recommended Version 7 Update 10 (filesize: 50.0 MB) from java.com


Firefox says that I've installed JVM 1.7.0_10 while Safari doesn't run it at all and Terminal shows 1.6.0_37. Last thing however I solved — moved /usr/bin/java and put a link to the one in /Library/Internet Plug-Ins/… so now java -version in Terminal shows correct one. Yet it didn't help.


Moreover I tend to blame Safari since "Blocked Plug-In" is rather a problem of Safari than Java installed; looks like that switch in Sfari preferences didn't work.

Jan 12, 2013 10:43 PM in response to AjaxOdessa

Save the text below as enableJava6.sh in plain text format.

Open a terminal and run the command. That will reactivate the old plugin and should work fine. Credit due to Rich Trouton.


#!/bin/sh



# Checks for backup directory for Java 7 plug-in

# and creates it if needed.



if [ -d "/Library/Internet Plug-Ins (Disabled)" ]; then

echo "Backup Directory Found"

else

mkdir "/Library/Internet Plug-Ins (Disabled)"

chown -R root:wheel "/Library/Internet Plug-Ins (Disabled)"

fi



# If a previous version of the Java 7 plug-in is already

# in the backup directory, the previously backed up Java 7

# plug-in is removed.



if [ -d "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin" ]; then

rm -rf "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin"

fi



# Moves current Java 7 plug-in to the backup directory



if [ -d "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" ]; then

mv "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" "/Library/Internet Plug-Ins (Disabled)/JavaAppletPlugin.plugin"

fi



# Create symlink to the Apple Java 6 plug-in in

# /Library/Internet Plug-Ins



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



# Re-enable Java SE 6 Web Start, which allows Java

# applets to run in web browsers



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

Jan 13, 2013 6:49 AM in response to FL_MacTech

Thanks for the info, but could you give some smore direction to those of us who are less knowledgeable about computer commands? I'm having the same issue with Java. It says I have 1.7.0.10 in Firefox, but Safari keeps telling me my Java is out of date. It's enabled everywhere (system preferences, safari preferences, etc). I saved the above text as a text document, and I can open Terminal, but what does "run the command" mean? How do I do that? What do I type into terminal?


Thanks.

Jan 13, 2013 6:52 AM in response to Daniel Lins

You cannot run Java 7 in Safari right now, period. There is a huge security issue with build 18 which is actively being exploited in the wild. You'll need to wait for build 19, when Oracle releases that.


You can go back to Java 1.6 that Fl_MacTech notes. But you won't be able to use Java 7 in Safari right now. And there's a reason for that.

Jan 13, 2013 6:57 AM in response to Daniel Lins

Daniel Lins wrote:


Thanks for the info, but could you give some smore direction to those of us who are less knowledgeable about computer commands? I'm having the same issue with Java. It says I have 1.7.0.10 in Firefox, but Safari keeps telling me my Java is out of date. It's enabled everywhere (system preferences, safari preferences, etc). I saved the above text as a text document, and I can open Terminal, but what does "run the command" mean? How do I do that? What do I type into terminal?


Thanks.

I'll let the shell scripter answer those questions.


While you have the current version of Java, all Java is blocked by XProtect because Java is as about as secure as Adobe apps. When Oracle releases a patch for the flaw, and Apple gets around to unblocking that patched version, it will be available again. I have no idea if the above script will get around XProtect or not.

Enable Oracle Java

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