Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Java folder located in Library despite JDK installation

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.

like image 923
Tyler Avatar asked Jun 29 '16 19:06

Tyler


1 Answers

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
like image 184
greg-449 Avatar answered Oct 19 '22 20:10

greg-449