Currently running OSX El Capitan on a recently set up computer. I'm trying to set up Java's unlimited crypto policy which requires me to modify some files within my current jre, but I can't find the Java folder that is supposed to be located within Library.
I've run /usr/libexec/java_home
which shows me /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
however within my Library folder, there is no Java folder, even when I try and navigate through terminal it says Java folder doesn't exist. After trying to reinstall JDK 1.8, still no luck and I'm out of ideas.
This is not the Library
folder in your home directory, this is the Library
folder in the root file system on your main disk.
So in Terminal the command
cd /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk
should work.
For different releases of Java replace jdk1.8.0_91.jdk
with the appropriate release.
To list what is in the directory use:
ls /Library/Java/JavaVirtualMachines