java-client icon indicating copy to clipboard operation
java-client copied to clipboard

Appium cannot accces JAVA_HOME location (folder does exist but Appium cannot find it)

Open xhu2016 opened this issue 4 years ago • 0 comments

Error message:" Original error: The JAVA_HOME location ' /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home' must exist" Appium version: Appium-mac-1.19.1 Java verion: 9.0.4 Machine: Mac OS Catalina. Version 10.15.7.

I manually set the JAVA_HOME variable in Appium configuration. The above folder exists and can be accessed on terminal via the exact path. I also tried a variation "/usr/libexec/java_home" and got the same error.

Right now I am wondering if this issue has something to do with Appium not having permission to access the folder. Help would be much appreciated! Thank you.

xhu2016 avatar Jan 20 '21 07:01 xhu2016