If I do so, will something, such as a service, break?
1 Answer
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:
Open Applications>Utilities>Terminal
Make the symlink (type your password if asked):
$ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /usr/bin/java
-
However removing just /usr/bin/java will not add to any form of security as many apps use the /System/.../java path– mmmmmmCommented Mar 7, 2013 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.– jaumeCommented Mar 8, 2013 at 17:26 -