简体   繁体   中英

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.

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

转到 Macintosh HD/Library/Java 而不是用户名/Library

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM