Where does Java come from on Mac OS X?

Asked 2 years ago, Updated 2 years ago, 26 views

To program JNI, you need to know where the java is located

I thought /Library/Java/JavaVirtualMachines/ was here, but when I tried ls/Library/Java/JavaVirtualMachines/ in the terminal, the folder was empty.

I don't know where it's placed.

java

2022-09-22 22:34

1 Answers

Enter the command /usr/libexec/java_home from the terminal It will show where the java is installed.


2022-09-22 22:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.