If you cannot find the Java home, open a terminal and enter:
env
search or SOMETHING THAT MY MAY NOT be the same as yours
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.7/Home
Your Java is installed here
If you want to see it in Finder, open Finder and press Command + Shift + G and enter the path to java home.
to remove just uninstall the java version:
/System/Library/Java/JavaVirtualMachines
with
cd /System/Library/Java/JavaVirtualMachines rm -r some.version.java.jdk
Note. Sometimes Java is installed in / System / Library, but sometimes it is installed in / Library, so you cannot find the Java in / Library suggested in the Oracle document.
source share