JAVA_HOME: Warning: Make sure JAVA_HOME is set properly for Java builds.

480 views
Skip to first unread message

Marius BoB

unread,
Jul 30, 2013, 2:16:41 PM7/30/13
to appium-...@googlegroups.com
I ran into this error but the JAVA_HOME variable is correctly set.

javac --version:
javac 1.7.0_07

java -version:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode

and here it is what I have in .bash_profile:
export JAVA_HOME=$(/usr/libexec/java_home)

bootstrap online

unread,
Jul 30, 2013, 2:21:16 PM7/30/13
to Marius BoB, appium-...@googlegroups.com
What's the output of echo $JAVA_HOME?

Marius BoB

unread,
Jul 30, 2013, 2:22:41 PM7/30/13
to appium-...@googlegroups.com
echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home

bootstrap online

unread,
Jul 30, 2013, 2:25:22 PM7/30/13
to Marius BoB, appium-...@googlegroups.com
It looks like it's set correctly. How are you triggering the error?
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Marius BoB

unread,
Jul 30, 2013, 2:28:48 PM7/30/13
to appium-...@googlegroups.com
by running "sudo ./reset.sh --selendroid" or " sudo ./reset.sh --android"

bootstrap online

unread,
Jul 30, 2013, 2:29:33 PM7/30/13
to Marius BoB, appium-...@googlegroups.com
You shouldn't be using sudo. That's the problem.

Marius BoB

unread,
Jul 30, 2013, 2:53:19 PM7/30/13
to bootstrap online, appium-...@googlegroups.com
changed the rights for the whole appium/ folder and it worked without sudo...thanks!
Reply all
Reply to author
Forward
0 new messages