Cannot get Java 7 back on this machine.

leex1528
New Contributor

So I went back to Java 6 as Java 7 wasn't working with an application we were using here.

Using this article http://support.apple.com/kb/HT5559?viewlocale=en_US

I now can no longer get Java version 7 on my machine after running that script.

If I verify my java version at Java.com it tells me I am on Java 6 update 42. If I terminal java -Version it tells me I am on Java 7 update 17. If I look in the system prefs it tells me no current updates are available.

Has anyone had any experiences like this...I have completely deleted the entire java folder and tried a fresh install with the same results.

12 REPLIES 12

scottb
Honored Contributor
java -version

#gives you Apple Java version

/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

#gets you the Oracle Java 7 info

Try nuking all the Java stuff in '/Library/Internet Plug-Ins/' and install Apple Java 6 again.
http://support.apple.com/kb/DL1572

leex1528
New Contributor

Both commands give me the answer I am running Java 7 Update 17.

When I nuke everything and reinstall Java 6 java's site says I am running Java 6 update 43.(everywhere else still says 7 update 17)

When I run the disable 6 script apple provided from my post earlier then try to reinstall Java 7, it will not get recognized at Java's site or any other applets.

I am out of ideas completely.

scottb
Honored Contributor

Try the steps outlined in this page:

http://www.java.com/en/download/help/mac_uninstall_java.xml

It sounds like something went wrong in following the steps in the KB article you referenced on how to enable Java 6 plugins...

mm2270
Legendary Contributor III

Have you checked in the Java control panel in System Preferences? I'm wondering if its still disabled there. Look in the Security tab, there's a checkbox to make it enabled in browsers. That prefpane/app only applies to the Oracle version of Java.

leex1528
New Contributor

I have looked in the control panel, once I uninstall Java 7(which I am still quite uncertain if something is hanging around somewhere) it removes the control panel from system prefs. It is enabled there when 7 is installed.

As of right now I have it saying at Java's site I have Java 6 update 43, and it tells me to upgrade to 7 update 17.

Once I try to update it, Java no longer works.

scottb
Honored Contributor

Look at the "JavaAppletPlugin.plugin" in /Library/Internet Plug-Ins/.
Is it a symlink or the actual Java plugin (Oracle)?

leex1528
New Contributor

Right now with Java 6 installed it is a symlink and not the oracle plugin.

scottb
Honored Contributor

OK, so what you need is for the Java 6 plugin to work again.
Try this to restart the Java web start:

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

leex1528
New Contributor

When I run that command and then try to install 7 it will not take it.

scottb
Honored Contributor

Run this, then install Java 7 again.
I thought you wanted Java 6 to run, sorry.

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

Download the Java 7 package here and install after the above.
http://www.java.com/en/download/mac_download.jsp?locale=en

leex1528
New Contributor

Hey sorry for being a bit confusing on my end, I am trying to recover from a fever.

That is what I have been trying to do this whole time, I can get 6 working on my machine, when I run that command

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

Then try to reinstall 7, it will not take it.

scottb
Honored Contributor

Not sure what to say. Try nuking the Java 7 caches.
http://www.java.com/en/download/help/mac_java_cache.xml

Other than that, it's hard to say what went wrong. Maybe if that cache thing doesn't work, just re-install the 10.8.2 installer again and see if you can get it going that way. It's easy to do and might just save some time at this point. If a Terminal command went south, it's hard to say where it was. Good luck - hope you feel better. See if that works for you.