Uninstalling Java 6?

Discussion in 'OS X El Capitan (10.11)' started by TheChemist, Dec 4, 2015.

  1. TheChemist macrumors regular

    TheChemist

    Joined:
    Sep 25, 2006
    #1
    Good morning,

    I installed Java for OSX 2015-001 to run one app, which I no longer need to use. How would I go about uninstalling this older version of Java ?

    Thanks!
     
  2. iceman42 macrumors regular

    Joined:
    Nov 12, 2012
    #2
    go to java.com and go to there faq section and they can tell you how to remove java
     
  3. TheChemist thread starter macrumors regular

    TheChemist

    Joined:
    Sep 25, 2006
    #3
    The support document I came across is pertinent to Java 7 and 8. Will this be appropriate for 2015-001?
     
  4. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #4
    There is no official way, I think. The problem is that the installation of Java 6 is provided by Apple through a system update. There are some suggestions though and I used this in the past as well. A backup would be advisable nonetheless.

    I'm curious though, when you run the following command, is there another bundle besides JavaEssentials and JavaTools that has Java in its name? Perhaps we can find out what was installed in the first place.
    Code:
    pkgutil --packages | grep -i java
    
     
  5. TheChemist thread starter macrumors regular

    TheChemist

    Joined:
    Sep 25, 2006
    #5
    Kallt,

    Thanks for chiming in on the matter. I followed the instruction on the Java.com site. I ran the command you offered and here is the terminal response.

    com.apple.pkg.JavaEssentials

    com.apple.pkg.JavaForMacOSX107

    com.apple.pkg.JavaMDNS

    com.apple.pkg.JavaSecurity

    com.apple.pkg.JavaSecurity

    Thoughts?
     
  6. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #6
    Well, that at least confirms that there are package lists available. You can see per bundle where it installed files. My guess is that JavaForMacOSX107 and JavaSecurity are the ones you should look at. Example:
    Code:
    pkgutil --files com.apple.pkg.JavaForMacOSX107 -v
    However, this is probably overwhelming and not really helpful. But it can give you an idea in which directories the files are. If you followed the steps in the link I gave you, then typing the following command should tell you whether Java is still there or not. There isn't much else you can do, as it requires messing with system directories. My hope is that this Java messiness will finally end when OS X 10.12 arrives, which was confirmed to no longer support Java 6 (and will probably migrate the code away).
    Code:
    java
     
  7. beebarb macrumors 6502

    beebarb

    Joined:
    Sep 10, 2015
    #7
    The only reliable way to remove the Apple supplied copy of Java SE 6, is to upgrade or reinstall OS X.

    But, in the meantime it is possible to stop it from working.
    Go to /Library/Java/JavaVirtualMachines

    In that folder should be a folder named something like "1.6.0.jdk".
    Drag the "1.6.0.jdk" folder to the trash.

    Without these primary runtime files, Java SE 6 won't work.
    You may also want to remove "JavaAppletPlugin.plugin" from /Library/Internet Plug-Ins
     
  8. TheChemist thread starter macrumors regular

    TheChemist

    Joined:
    Sep 25, 2006
  9. Rodan52 macrumors regular

    Rodan52

    Joined:
    Sep 21, 2013
    Location:
    Melbourne, Australia and Bali, Indonesia
    #9
    By the by Java 6 is the current version.
     
  10. beebarb macrumors 6502

    beebarb

    Joined:
    Sep 10, 2015
    #10
    Of the deprectated Apple supplied version, but the Oracle version is up to Java 8.
     
  11. zhaoxin macrumors regular

    Joined:
    Jan 28, 2015
    #11
    The best way I think is to time machine your current system, then restore it from the time machine. According to my experience, time machine does not backup the java part.
     
  12. beebarb macrumors 6502

    beebarb

    Joined:
    Sep 10, 2015
    #12
    No.
    A time machine backup is going to include anything in the Library folder at the time of the backup, that includes Java if it is installed.

    A backup and restore in this case is not only an extreme overkill procedure, it is also a pointless waste of time.
    Potentially hours worth of time would be wasted backing up, erasing, reinstalling and restoring, only to be back at square one.
     
  13. TheChemist thread starter macrumors regular

    TheChemist

    Joined:
    Sep 25, 2006
    #13
    I deleted the "offensive" folder, rebooted and all is well. Hopefully I can elicit both of your help on a new thread I'm about to start regarding EtreCheck.

    Thanks again!
     
  14. zhaoxin macrumors regular

    Joined:
    Jan 28, 2015
    #14
    I don't know if you have done a test. Every time I restore from time machine, the system will tells me that I don't have java installed. Actually, the apple's java 6 is some kind being catalogued as runtime, which is not restore by time machine anytime.

    It is easier saying than done. Just have a try and you will know I am right.
     
  15. beebarb, Dec 6, 2015
    Last edited: Dec 6, 2015

    beebarb macrumors 6502

    beebarb

    Joined:
    Sep 10, 2015
    #15
    @zhaoxin
    "Just have a try and you will know I am right." HA...HA...NO.
    It's not that simple.

    Many of the files I use are too large and modified too frequently for an automated backup system to handle.
    Having it turned on would make working with my system virtually impossible.

    I can't afford the downtime required for time machine to backup those files even once.

    As I have observed by reading other cases, it seems likely that I am possibly the one correct here.
    People have had all sorts of kernel extensions, startup items, preference panes, etc. from the Library folders resurface after a Time Machine restore.

    Unless you specifically tell it not to, it will back up everything.

    But, regardless of who is actually right or not, I honestly don't care.
    The OP's problem was SOLVED.

    There does not need to be any more discussion on this matter.
     
  16. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #16
    Are you sure you restored the entire backup and not used Migration Assistent with the Time Machine backup as the basis? Time Machine restores pretty much everything. The point of it is to restore the system as it was in that exact point of time without you having to worry about losing or breaking stuff.
     

Share This Page