How can I uninstall java 6?

I installed Java 6 on Yosemite, because another install (IBM Notes) said I needed this. I did this using Apple's installer: Java for OS X 2015-001


Now I'd like to uninstall, but I can only find instructions for Java 7 and 8. Can anyone help?

iMac (21.5-inch Mid 2010), OS X Yosemite (10.10.4)

Posted on Jul 26, 2015 1:02 PM

Reply
14 replies

Jul 26, 2015 1:12 PM in response to koru

Believe it or not, the easiest way to uninstall Java 6 is to either restore a backup you made before installing Java 6, or reinstall the OS. Reinstalling the OS always removes the Apple versions of Java.


Java 6 installs over 1300 files and folders to numerous locations on the drive. There is no easy way to manually uninstall it, and Apple doesn't provide an uninstaller.

Jul 26, 2015 1:20 PM in response to koru

I installed the Java 8 Runtime Environment which overwrote Java 6 obviating any necessity to remove it. I did have an application that for some reason refused to recognize the Java 8 so I installed the Java 8 SE Java Development Kit from Oracle and that took care of that problem. I would start with the Java 8 Runtime Environment and only install the JDK if there were a problem.

Jul 26, 2015 2:12 PM in response to Joe Bailey

I installed the Java 8 Runtime Environment which overwrote Java 6 obviating any necessity to remove it.

That is incorrect. Java 6 and 8 can and do exist at the same time. Java 8 is installed only to the /Library/Internet Plug-Ins/ folder in the single package file JavaAppletPlugin.plugin. Java 6 is not. It's all over the place, including hidden folders, and none of it in the /Library/Internet Plug-Ins/ folder. So it's not even possible for Java 8 to overwrite 6.

Jul 27, 2015 2:38 AM in response to Kurt Lang

Thanks. I'm just about to switch to using a new macbook, arriving today. If I use migration assistant to set up my macbook, do you know if it will transfer the Java 6 over? If not, then once I have transferred to it, I can do a reinstall on my old machine, which my wife is going to use.


How can I tell if Java 6 is on my machine? Where, in the folder structure, would I find a file that would tell me?

Jul 27, 2015 6:30 AM in response to koru

I've never used Migration Assistant, so can't say if it would carry Java 6 over, but probably so.


In the root Library folder (not the one with the System folder or your user account), if you can navigate to:


/Library/Java/JavaVirtualMachines/1.6.0.jdk


Then Java 6 is installed. You can double prove it by opening Terminal in the /Applications/Utilities/ folder and typing:


java -version


It should return something like this:


java version "1.6.0_65"

Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4828a)

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


The 6 means version 6, and the 65 is the release number (version 65 of Java 6). It's unknown why Oracle puts the preceding 1 or trailing 0 in the version numbers for Java.

Sep 14, 2015 7:49 AM in response to koru

It may not be easy to remove (I haven't dug deeper) but it is fairly simple to at least disable. This may provide the extra piece of mind your look for.


You must have admin rights. Open terminal and type:


sudo mv /Library/Java/JavaVirtualMachines JavaVirtualMachines.old

(It will prompt you for your password.)


Done. Now if you type "java --version", as suggest above, you will see a prompt suggesting the Java JDK be installed. Any apps calling Java locally will do the same.

Sep 14, 2015 8:31 AM in response to Kurt Lang

Kurt - another data point.

When I had both Apple Java 6 and Oracle JRE 8 installed, the commandline

java -version

returned 1.6.xxx.

After installing Oracle JDK 8, it returns

1.8.xxx

So, I think the JDK modifies all the old links to use 1.8.

My only useful test software is NIH ImageJ, which reports which java version it is using - and used to report 6 after installing JRE 8. And now reports java 8.

Sep 14, 2015 9:44 AM in response to greg sahli

That's bizarre, since it shouldn't. When I had both Java 8 and 6 installed, with Java 8 having been installed second, the Terminal command always returned

java version "1.6.0_65".


Possibly a change in the latest version of Java 8?


I no longer install Java 6 for the apps that require it. I instead use the two Terminal commands that create empty stub files that make the apps that use Java 6 believe it's installed. They then run under Java 8 instead of complaining that the Java runtime environment is missing.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I uninstall java 6?

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