Do you need to find out location of Java in your MAC?
Its simple:
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
Need to find specific version?
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
What happens when specified version is not available?
Unable to find any JVMs matching version "1.8".
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
P.S. Click here to access my other posts.
Its simple:
- Open Terminal
- Type the command: /usr/libexec/java_home
- Hit Enter/Return button
- If Java is available, then you will see results like this
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
Need to find specific version?
- Open Terminal
- Type the command: /usr/libexec/java_home -v 1.7
- Hit Enter/Return button
- If Java is available, then you will see results like this
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
What happens when specified version is not available?
- Open Terminal
- Type the command: /usr/libexec/java_home -v 1.8
- Hit Enter/Return button
- If Java is available, then you will see results like this:
Unable to find any JVMs matching version "1.8".
/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
P.S. Click here to access my other posts.
Comments
Post a Comment