Home > Software engineering >  Appium Setup - Determining what jdk version I am using on mac
Appium Setup - Determining what jdk version I am using on mac

Time:11-25

I am following a guide to set up Appium on my mac. It is asking me to set my JAVA_Home variables. They are using: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home

They have instructed me to replace jdk1.8.0_192.jdk with my own version of JDK. How would I find out what my JDK is? I have tried using: java -version java version "11.0.11" 2021-04-20 LTS

I am unsure how to translate that into the correct JDK.

Thanks in advance for any help

CodePudding user response:

For the currently used jdk version;

/usr/libexec/java_home -V

You can use this command.

CodePudding user response:

I was able to find the jdk version using the below command: ls /Library/Java/JavaVirtualMachines

  • Related