Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

If I do so, will something, such as a service, break?

share|improve this question
    
It's safe provided you also remove any plist in Application Support and Preferences folders that reference /usr/bin/java. –  Global nomad Feb 16 '13 at 1:29
3  
Why would you need/want to remove it? –  MattDMo Feb 16 '13 at 3:08

1 Answer 1

Mac App Store apps and OS X core applications and services don't depend on Java, but some 3rd party applications (like LibreOffice) do, and they will break if you delete /usr/bin/java.

Since /usr/bin/java is a symlink:

/usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

if you notice that an application complains about missing Java or fails to start after deleting /usr/bin/java simply recreate it like this:

  1. Open Applications>Utilities>Terminal

  2. Make the symlink (type your password if asked):

    $ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /usr/bin/java
    
share|improve this answer
    
However removing just /usr/bin/java will not add to any form of security as many apps use the /System/.../java path –  Mark Mar 7 '13 at 14:21
    
It is still unclear why the OP wants to remove /usr/bin/java, but if it is security related and many apps use the /System/Library/... path as you say (could you provide some more information about that? is it an Apple recommendation?), then no, it won't increase security much. –  jaume Mar 8 '13 at 17:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.