Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

Can anyone tell me what’s the terminal command to view the list of all the JRE installed on my Mac?

3 Answers

0 votes
by (19.7k points)

Below is the /usr/bin/java command to lists one line per Java environment installed: 

/usr/libexec/java_home -V

Interested in Java? Check out this Java tutorial by Intellipaat. 

0 votes
by (1.6k points)

To see all installed Java Runtime Environments on your Mac, you may use the following terminal command:

/usr/libexec/java_home -V

The above command will show the installed Java versions and their paths.

It is utility locates Java installations on your mac, found at

/usr/libexec/java_home.

-V Print all installed versions of Java on your system

0 votes
by (1.9k points)

To see all installed Java Runtime Environments on your Mac, you may use the following terminal command:

/usr/libexec/java_home -V

The above command will show the installed Java versions and their paths.

Explanation

It is utility locates Java installations on your mac, found at /usr/libexec/java_home.

-V Print all installed versions of Java on your system

No related questions found

1.4k questions

32.9k answers

507 comments

693 users

...