JAVA problem

Discussion in 'OS X El Capitan (10.11)' started by mermaid2010, Jul 2, 2016.

  1. mermaid2010 macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #1
    Hi
    I have just upgraded to El Capitan on my 2011 MacBook Pro but now every time I start her up I get this annoying message To use the "java" command-line tool you need to install a JDK. El Capitan OS X "
    and I don't have Java on my MacBook.

    I saw a fix on YouTube here
    But they are telling you to download JAVA, I thought that was a bad idea unless you need it which I don't!

    How do I get rid of this pesky message please?
     
  2. treekram, Jul 2, 2016
    Last edited: Jul 2, 2016

    treekram macrumors 6502a

    Joined:
    Nov 9, 2015
    Location:
    Honolulu HI
    #2
    Do you use Chrome? I don't but it appears that if you use Chrome, you need to have a Java JDK. If you upgraded from an older version of OSX (pre-Mavericks, I think), Apple included their version of the JDK in previous versions of OSX (but no longer does) and that's a possible reason why you get this message after upgrading to El Capitan.

    So if you use Chrome and you upgraded from an OSX before Mavericks, then you have two choices - don't use Mavericks or install a JDK. If this does not describe your situation, you would need to find out what program needs the JDK - I would suggest running etrecheck and if you can't figure out what program requires the JDK, post the results here.

    https://etrecheck.com/

    EDIT: OOOPS - that should have been don't use Chrome (not Mavericks) but I think the OP figured that out.
     
  3. mermaid2010 thread starter macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #3
    Hi, thanks
    Yes I do use CHROME and was upgrading from LION! a big upgrade
    will look into what you suggest
    many thanks :)
     
  4. NoBoMac macrumors 6502a

    Joined:
    Jul 1, 2014
    #4
    I could be Chrome.

    Could also be a host of other apps that might be installed. For example, OpenOffice/LibreOffice use Java for their MS Access-like feature. If I recall correctly, some Adobe apps use Java.

    The message appearing at startup, or, when you invoke a program? If at startup, might want to look in your Login Items under System Settings > Users. And/or ~/Library/LaunchAgents. System start items might be under /Library/LaunchAgents, /Library/LaunchDaemons.
     
  5. mermaid2010 thread starter macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #5
    it i
    It is at start up. I have located the folder you suggest and attach it.
    The only file I see that I do not use is the Vodafone one 4th one down. Can I just delete this file Ok?
     

    Attached Files:

  6. mermaid2010 thread starter macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #6
    tried deletine a few files not required, but no luck, still keeps popping up.... grrr
     
  7. treekram macrumors 6502a

    Joined:
    Nov 9, 2015
    Location:
    Honolulu HI
    #7
    See if Chrome is starting at login. Right-click on the Chrome icon in the dock. Click on Options. Make sure "Open at Login" is not checked. Also make sure you close Chrome before shutting down or logging out. If Chrome is set to start when you login and the popup doesn't appear once that doesn't happen, then it's Chrome.

    You may also want to try logging in to your computer with another user (if you don't have one, you'd have to create one). If the popup doesn't appear when logging as the other user, whatever it is specific to your account and looking in the system-wide launch directories wasn't necessary.
     
  8. mermaid2010 thread starter macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #8
    Tried both those suggestions - did not help :(
    I have even deleted the CHROME app and that also did not help
    As nobomac said before: some Adobe apps use Java...... I DO have ADOBE CC which connects and is in the Launch Agents but I need those., but perhaps that is the culprit? Oh dear what to do...
     
  9. NoBoMac macrumors 6502a

    Joined:
    Jul 1, 2014
    #9
    Well, if it is Adobe, download the Java JDK and install. Have your browser(s) setup to not run Java automatically.

    Only other option is to replace Adobe with something that does not need Java.
     
  10. treekram macrumors 6502a

    Joined:
    Nov 9, 2015
    Location:
    Honolulu HI
    #10
    If it's not Chrome (well, it is Chrome but it's not the only program wanting Java), then the next likely candidate is Adobe CC. The popup you get specifically asks for the JDK vs. the JRE (or "Runtime") and while it's clear that Chrome wants the JDK, it wasn't clear to me, as a non-user of Adobe CC and looking on the Web, that Adobe CC required the JDK vs. the JRE, although if your CC has Flash development software, it looks like that requires the JDK. The JDK vs. JRE may seem uninteresting, but it does help in pinpointing what software is the one asking for Java.

    In any case, I would agree with NoBoMac that it probably will be less work if you were just to install the Java JDK unless you can do without Adobe CC. There have been security issues with the Java web plugin, but you can disable that in the browsers you're using. I use Firefox and Safari so if you need to know how to disable them there, let us know. The other problem with the current Java JDK is that as a default, it will enable Ask adware. But you can disable that as well. You need to download the JDK (8u91 is fine), not the JRE ("Runtime").

    Java JDK download: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    How to disable Ask adware: https://www.java.com/en/download/faq/disable_offers.xml
     
  11. mermaid2010 thread starter macrumors member

    mermaid2010

    Joined:
    Jul 4, 2010
    Location:
    Cornwall, UK
    #11
    seems a heavy thing to do to install JAVA just to get rid of message., thinking I shall put up with message!
    --- Post Merged, Jul 3, 2016 ---
    Many thanks for that informative reply will think on later.., just hate putting something on I dont need esp on my Macbook.
     

Share This Page