Is this safe method to check if JAVA is not installed?

Discussion in 'Mac Basics and Help' started by Aqewwe, Mar 29, 2017.

  1. Aqewwe macrumors newbie

    Joined:
    Mar 29, 2017
    #1
    https://www.cnet.com/how-to/how-to-check-for-and-disable-java-in-os-x/
    The OS X Terminal (in the /Applications/Utilities/ folder) provided access to a number of commands that can be used for looking up system information, and by running the following one in the Terminal you should be able to see in the output what Java runtimes (if any) are installed on your computer:

    sudo /usr/libexec/java_home



    Is it safe to type

    sudo /usr/libexec/java_home

    into Terminal to see if there is Java? I want to make sure I don´t have it.
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    It doesn't need the 'sudo'. Or shouldn't. This should work:
    Code:
    /usr/libexec/java_home
    
    You can copy that line and paste it into a Terminal window, rather than typing it manually and possibly making an error. Copy-paste should reduce chances of typos.
     

Share This Page