Reputation: 137
JAVA_HOME is not set currently. Please set JAVA_HOME. I want to run appium programs but its throwing this weird error
Even java_home path not displaying in terminal. Currently displaying blank
JAVA VERSION Is also getting displayed
Upvotes: 1
Views: 2823
Reputation: 229
try the following command:
If not then you need to add it there.
If already added then run source .bash_profile, it reloads the file. And the path is set.
Upvotes: 1
Reputation: 339
The first bash line is incorrect.
export JAVA_HOME=$(/usr/libexec/java_home)
Should be:
export JAVA_HOME=/usr/libexec/java_home
Upvotes: 0