HT202822: About Java for OS X 2013-005

Learn about About Java for OS X 2013-005
ornicar

Q: Upgrading Java 1.6 to 1.8

Hello,

 

I need to upgrade Java 1.6 to 1.8 (I have trouble with a third party application called Wuala which could be a Java issue).

 

In terminal, when I enter "java -version", I get the answer :

     java version "1.6.0_65"

     Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)

     Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)


In About this Mac -> System Report, I see that I have Java for OS X 2013-005 installed.


When I try to install Java 8 Update 40 from www.java.com (Oracle Java), I get the message :

     A newer version of Java is already installed.

     You are trying to install 1.8.40.25, however 14.9.0 is already installed.

     Visit java.com/newerversionexists for more information.

 

As I could understand, 14.9.0 is Apple numbering for java 1.6.

On java.com/newerversionexists, I found no useful information.

 

I am unable to uninstall Java 1.6 from my Mac. Could anybody help ? Thanks,

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Mar 8, 2015 3:57 AM

Close

Q: Upgrading Java 1.6 to 1.8

  • All replies
  • Helpful answers

  • by Eric Root,Helpful

    Eric Root Eric Root Mar 8, 2015 9:25 AM in response to ornicar
    Level 9 (74,022 points)
    iTunes
    Mar 8, 2015 9:25 AM in response to ornicar
  • by ornicar,

    ornicar ornicar Mar 8, 2015 7:20 PM in response to Eric Root
    Level 1 (2 points)
    Mar 8, 2015 7:20 PM in response to Eric Root

    Hello Eric,

     

    Thanks for your answer.

     

    Although the page your message points to deals with uninstalling Oracle Java 7 and above, I tried it.

     

    I had no JavaAppletPlugin.plugin under Applications/, but I had one under /Library/Internet\ Plug-Ins/.

     

    So, I sent /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin (a symlink) to the Trash from the Finder (which was not exactly what was described).

     

    Then in terminal, when I entered "java -version", I still got the answer :

         java version "1.6.0_65"

         Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)

         Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)


    But when I tried to install Java 8 Update 40 from www.java.com (Oracle Java), it worked !


    Yet again in terminal, when I enter "java -version", I still get the answer :

         java version "1.6.0_65"

         Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)

         Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

     

    Apparently I now have 2 versions of Java at the same time.

     

    Curiously, I have no place in Safari's Preferences where I can set "Enable Java", but the Java test on java.com worked.

     

    Curiously also, I don't have any Java icon under System Preferences.

     

    And the problem I had with Wuala still remains...

     

    Nevertheless, thanks a lot for helping.

     

    Regards,

     

    PS : Sorry for the fonts in this message, I don't know how to change them.

  • by greg sahli,

    greg sahli greg sahli Mar 8, 2015 8:25 PM in response to ornicar
    Level 7 (25,400 points)
    Mar 8, 2015 8:25 PM in response to ornicar
  • by Raicya,

    Raicya Raicya Mar 9, 2015 3:14 AM in response to ornicar
    Level 3 (913 points)
    iPad
    Mar 9, 2015 3:14 AM in response to ornicar
  • by Kurt Lang,

    Kurt Lang Kurt Lang Mar 9, 2015 8:03 AM in response to ornicar
    Level 8 (38,024 points)
    Mac OS X
    Mar 9, 2015 8:03 AM in response to ornicar
    Apparently I now have 2 versions of Java at the same time.

    Yes. You have Apple's version 6 SE installed, and Oracle's version 8. There is no problem doing this.

     

    OS X will not allow Java 6 or Oracle's Java 7 to connect to any browser. Java 8 would be the only one showing as active at a test web site. Since the Java icon is missing in the System Preferences, you can simply install Java 8 again.

     

    Java 8 is in one place only on your drive. It's all contained in the file JavaAppletPlugin.plugin within the /Library/Internet Plug-Ins/ folder. The only other file is an alias named JavaControlPanel.prefPane in the /Library/PreferencePane/ folder, which points to an item within the previously named file of the plug-ins folder.

     

    You could create this alias yourself by right clicking on JavaAppletPlugin.plugin and choosing Show Package Contents. Then drill down to Contents > Home > lib > deploy. Click on the file JavaControlPanel.prefPane, and while holding both the Command and Option keys, drag it into the /Library/PreferencePane/ folder. This will create the missing alias and will then show up in the System Preferences. From there, you can launch the Java controls and turn version 8 off for browsers.

  • by ornicar,

    ornicar ornicar Mar 9, 2015 11:39 PM in response to Kurt Lang
    Level 1 (2 points)
    Mar 9, 2015 11:39 PM in response to Kurt Lang

    Hello,

     

    Thanks to you all !

     

    I will read the articles you refer to carefully.

     

    I now have a working Java icon in my System Preferences Pane, without having done anything special other than restart the machine.

     

    Have a nice day,