You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

How can I downgrade my Java version and Runtime Environment to 6?

Hi, thanks for reading this in advance:


I have a couple problems. Ever since Java Preferences was removed in one of Lion's updates I have been having trouble with java.


How do I downgrade my java and runtime environment to java 6?
When I go into terminal, and type java -version, this is what I get:


java version "1.7.0_09"

Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)


How do I downgrade the "java version" to 6 and how do I downgrade the SE Runtime Environment to 6?


I accidentally installed 7 a couple days ago and I've been having trouble with some applications.


Thank you so much.

iMac, Mac OS X (10.7.5)

Posted on Nov 16, 2012 12:00 PM

Reply
10 replies

Nov 16, 2012 12:06 PM in response to Minionsman

Try this:


Q: Can I restore Apple Java 6 after uninstalling Oracle Java 7?

A: Go back to Apple Java 6 using the following instructions:

  1. Uninstall Oracle Java 7 by deleting the plug-in file. From a Terminal window enter:% sudo rm -rf /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
  2. Create a symlink using the following command, entered on a single line:% sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet Plug-Ins/JavaAppletPlugin.plugin

Nov 16, 2012 12:15 PM in response to Kappy

Ok, I did the first part,

sudo rm -rf /Library/Internet Plug-Ins/JavaAppletPlugin.plugin


But I'm having trouble with the second part. Apparently

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

Does not exist? No such file or directory.

Nov 17, 2012 9:03 AM in response to Kappy

Still doesn't work.

But I know what you're getting at.


I've have done that before, but it still doesn't downgrade everything to 6. I just don't my java web to be downgraded. I accidentally installed java 7 and I want to downgrade everything to 6. Including the runtime environment.


Sorry if I'm stupid and that actually does downgrade everything. (it didn't when I did it)

Jul 8, 2013 4:41 PM in response to Minionsman

Dear Minionsman and everyone who reads this. I was so happy when i downgraded and i wanted to share it to all, I have found out why it says this in terminal


java version "1.7.0_09"

Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)



and why it says something different on java tester


Its because java 7 blocks every java version below it.


How do you downgrade?

Well all you do is delete a few files 😀

INSTRUCTIONS BELOW


1.Open Terminal


2. Enter these commands

  1. sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
  2. sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
  3. sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI .plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
  4. sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws

3.

Go to /Library/Internet Plug-Ins/ and delete the JavaAppletPlugin.plugin bundle.


4.

Go to /System/Library/Java/JavaVirtualMachines/ and delete anything whose name starts with jdk1.7.0 or says Java 7 or something similar.


5. now go to terminal and type

java -version


6.it should say something like this


java version "1.6.0_35"

Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M4508)

Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)






<Edited by Host>

Sep 23, 2013 11:17 PM in response to Minionsman

Hi. I am currently working on 10.8.4 OSX. I had accidentally installed jdk1.7, downloaded and installed it from oracle site, and now have to downgrade it. I have followed the same steps as mentioned above. After executing the commands, there are no files to delete, as mentioned in point 3 and 4. And the version still remains the same

java version "1.7.0_25"

Java(TM) SE Runtime Environment (build 1.7.0_25-b15)

Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)


Can someone please help me out. ?

How can I downgrade my Java version and Runtime Environment to 6?

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