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
ago by (260 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
ago by (1.7k 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

Related questions

0 votes
1 answer
asked Jul 10, 2019 in Java by Krishna (2.6k points)
0 votes
1 answer
asked Dec 20, 2020 in SQL by Appu (6.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...