Previous 1 2 Next 16 Replies Latest reply: Jan 14, 2014 12:56 PM by hansm
AjaxOdessa Level 1 Level 1 (0 points)

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
  • macjack Level 9 Level 9 (50,650 points)

    System Preferences > Java > Java COntrol Panel > Security, Enable Java in web browser.

  • AjaxOdessa Level 1 Level 1 (0 points)

    It is enabled everywhere but doesn't work. Moreover, Firefox runs Java while Safari is NOT

  • macjack Level 9 Level 9 (50,650 points)

    What version of Java are you running?

  • AjaxOdessa Level 1 Level 1 (0 points)

    ajax-mbp:~ ajax$ java -version

    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)

    ajax-mbp:~ ajax$

  • macjack Level 9 Level 9 (50,650 points)

    You can't do it with that version. If you really NEED to run Java, DL Oracle Java 7_10 but understand there are troubling vulnerabilites.

  • AjaxOdessa Level 1 Level 1 (0 points)

    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.

  • macjack Level 9 Level 9 (50,650 points)

    I think that may be the case. When I go to Java test site with Java 7_10 I get the same "blocked plug-in" message. However that doesn't seem to effect DLing .jnlp files, which is all I use it for.

     

    You could give the updated version a try but that is still a beta.

  • FL_MacTech Level 2 Level 2 (230 points)

    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

  • Daniel Lins Level 1 Level 1 (75 points)

    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.

  • William Lloyd Level 7 Level 7 (20,980 points)

    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.

  • AjaxOdessa Level 1 Level 1 (0 points)

    Thank you. Got Java 6 running, yet would prefer to have safer version to be active (when needed).

  • Barney-15E Level 8 Level 8 (43,295 points)

    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.

  • AjaxOdessa Level 1 Level 1 (0 points)

    Script just put JSE 6 instead of JSE7 and 6th version seems to be allowed by XProtect.

  • Daniel Lins Level 1 Level 1 (75 points)

    Found another solution that seems to work also.  A few terminal commands that can be copied and pasted.  They get Safari to use Java 6 instead of blocking Java 7.  Worked on my computer, as well as my wife's.  Instructions are at:

     

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

Previous 1 2 Next