Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 8 of 8
Like Tree5Likes
  • 1 Post By Greg Sylvia
  • 1 Post By rickpoet
  • 1 Post By Rafagon
  • 1 Post By Rafagon
  • 1 Post By blochamok
  1. Thread AuthorThread Author   #1  
    Rafagon's Avatar
    iMore Intermediate

    Posts
    272 Posts

    Angry Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    Ever since updating to macOS Sierra, I see the following pop-up every two or three hours or so:

    Exhibit A:
    -j1.png

    Obviously, I clicked on “More Info…” which takes me to the following website but there’s a Safari pop-up over the site:

    Exhibit B:
    -j2.png

    So I went to the Security pane of Safari preferences and placed a checkmark by “Java”, like so:

    Exhibit C:
    -j3-ticked-java.png

    Then I click on Done and Safari’s pop-up disappears and I’m back at the website I posted above:

    Exhibit D:
    -j4.png

    Then I click the button that says “Agree and Start Free Download” but then this message appears:

    Exhibit E:
    -j5.png

    I then close out the browser, continue using my computer, then everything happens again about two or three hours later.

    I’d be more than happy to completely uninstall Java permanently, due to its questionable safety and what-not, but why do I keep getting the pop-up shown in Exhibit A, above? How do I determine what is installed on my iMac that keeps trying to call Java?
    Last edited by Rafagon; 09-24-2016 at 11:26 PM. Reason: Fixed thread title and wording of post
  2. #2  
    Greg Sylvia's Avatar
    iMore Nanite

    Posts
    1 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    I'd love to know the solution to this problem too as it is driving me nuts.
    Rafagon likes this.
  3. #3  
    rickpoet's Avatar
    iMore Nanite

    Posts
    1 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    I found an answer which worked for me in the Macrumors forums.

    Head here: Java SE Development Kit 8 - Downloads

    Under "Java SE Development Kit 8u101", select the "Accept License Agreement"...and then under that download the version for "Mac OS X".

    Install it.

    No more Java command-line tool" pop-up since installing this yesterday.

    I hope it works for you too!
    Rafagon likes this.
  4. Thread AuthorThread Author   #4  
    Rafagon's Avatar
    iMore Intermediate

    Posts
    272 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    Quote Originally Posted by rickpoet View Post
    I found an answer which worked for me in the Macrumors forums.

    Head here: Java SE Development Kit 8 - Downloads

    Under "Java SE Development Kit 8u101", select the "Accept License Agreement"...and then under that download the version for "Mac OS X".

    Install it.

    No more Java command-line tool" pop-up since installing this yesterday.

    I hope it works for you too!
    Thanks, just finished installing that and now I’m keeping fingers crossed. I'll report back to say that hopefully the pop-up has been banished.

    Thank you kindly for your help!
    rickpoet likes this.
  5. Thread AuthorThread Author   #5  
    Rafagon's Avatar
    iMore Intermediate

    Posts
    272 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    Quote Originally Posted by rickpoet View Post
    I found an answer which worked for me in the Macrumors forums.

    Head here: Java SE Development Kit 8 - Downloads

    Under "Java SE Development Kit 8u101", select the "Accept License Agreement"...and then under that download the version for "Mac OS X".

    Install it.

    No more Java command-line tool" pop-up since installing this yesterday.

    I hope it works for you too!
    I can’t thank you enough. The annoying pop-up hasn’t reared its ugly ahead again.

    Seriously, thank you kindly.
    rickpoet likes this.
  6. #6  
    blochamok's Avatar
    iMore Nanite

    Posts
    1 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    Ohhh! if this works you made my day!!! :-D - I've been pulling my hair out and upating it a zillion times! - fingers crossed!!!
    rickpoet likes this.
  7. #7  
    a2daj's Avatar
    iMore Nanite

    Posts
    3 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    One thing that I've noticed with major OS updates, like Sierra or El Capitan, Apple seems to have a knack for randomly messing with installed developer tools, like breaking links to my JDK installation. This could be the case for others having this issue. Reinstalling the JDK is one way to resolve the issue. If you're familiar enough with the Terminal, you can manually fix this, but the JDK installer is the safer way.

    I'm a little more curious into the cause of the Java executable being invoked rather than the fix.
    Java installations normally come in three flavors.
    • The Java Runtime Environment (JRE), which includes things such as the browser plugins. This allows you to run Java programs, but it doesn't allow you to develop them. Most people only need this.
    • The Java Server JRE, which is for Linux, Solaris, or Windows servers. There's no OS X version.
    • The Java Development Kit. You need this to compile Java applications. It includes the JRE when installed. But the versions of the JDK and JRE can diverge since the JRE can check for updates and request installation by itself. When the JRE updates, it does not automatically update the JDK.


    As instructed, you installed the Java Development Kit, which should only be required by Java developers. So, what is requiring the JDK? What Java application do you have installed that requires the command line Java executable? Is there anything in the Console regarding Java whenever the dialog about installing the JDK would pop up?
  8. #8  
    Hatya's Avatar
    iMore Nanite

    Posts
    1 Posts

    Default Re: Seeing “Java command-line tool” pop-up every 2 - 3 hours since updating to macOS Sierra

    I finally found a better solution:

    1) Right-click Finder
    2) Select 'Go To Folder'
    3) Type in the search window " ~/Library/LaunchAgents/ "
    4) If available, right-click the file " com.facebook.videochat.USERNAME.plist "
    5) Select " Move to Trash "
    6) Empty Trash
    7) Restart Mac. Message should no longer be popping up.
    source: https://discussions.apple.com/thread/7258630?tstart=0

    It's better because it deals with the problem's source. Java is not needed by most, so it's better without it. This may not work for 100% of cases, because you may have calls to the Java command-line tool from other places, but it's unlikely.

Similar Threads

  1. Did you update to 10.0.2?
    By erwaso in forum iPhone 7 Plus
    Replies: 31
    Last Post: 09-26-2016, 03:17 PM
  2. Replies: 1
    Last Post: 09-24-2016, 10:08 PM
  3. Replies: 2
    Last Post: 09-24-2016, 09:33 PM
  4. Replies: 1
    Last Post: 09-24-2016, 08:56 PM
  5. iTunes backup vulnerability: What you need to know!
    By iMore.com in forum iMore.com News Discussion
    Replies: 0
    Last Post: 09-24-2016, 05:12 PM

Posting Permissions