Skip to content

Commit c37702a

Browse files
committed
Changed JAVA_HOME command with versions
1 parent 3ff820f commit c37702a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/getting-started/macos.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ xcode-select --install
9292

9393
### On JAVA_HOME Command
9494

95-
The information property file, _Info.plist_, is in the top level _Contents/_ directory.
96-
This means that GraalVM participates in the macOS-specific `/usr/libexec/java_home` mechanism.
97-
Depending on other JDK installation(s) available, it is now possible that `/usr/libexec/java_home -v23` returns `/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home`.
98-
You can run `/usr/libexec/java_home -v23 -V` to see the complete list of JVMs available to the `java_home` command.
99-
This command sorts the JVMs in decreasing version order and chooses the top one as the default for the specified version.
95+
The information property file, _Info.plist_, is located in the top-level _Contents/_ directory.
96+
This allows GraalVM to integrate with the macOS-specific `/usr/libexec/java_home` mechanism.
97+
Depending on other installed JDKs, running `/usr/libexec/java_home -v<version>` may return `/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home`.
98+
To view all JVMs recognized by `java_home`, run `/usr/libexec/java_home -V`. This command lists JVMs in descending version order.

0 commit comments

Comments
 (0)