This is a step in :
<http://docs.ionic.io/services/auth/google-native.html>

Im trying to generate an SH1 key with:

```
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

```

I get the following error:

```
keytool error: java.lang.Exception: Keystore file does not exist: /Users/alex_fimm_dev/.android/debug.keystore
java.lang.Exception: Keystore file does not exist: /Users/alex_fimm_dev/.android/debug.keystore
    at sun.security.tools.keytool.Main.doCommands(Main.java:745)
    at sun.security.tools.keytool.Main.run(Main.java:343)
    at sun.security.tools.keytool.Main.main(Main.java:336)

```

I suspect something is wrong with JAVA\_HOME path?

here is my .bash\_profile

```
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/alex_fimm_dev/Desktop/Databases/Mongo/mongodb/bin:/Users/alex_fimm_dev/Desktop/Databases/Mongo/mongodb/bin

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

# Homebrew
export PATH=/usr/local/bin:$PATH

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

# android and java paths
export JAVA_HOME=/Library/Java/Home/
export ANDROID_HOME=/usr/local/Cellar/android-sdk/
export PATH=${PATH}:/usr/local/Cellar/android-sdk/24.4.1_1/platform-tools:/usr/local/Cellar/android-sdk/24.4.1_1/tools

```

And if I go to the location of the keystore file:

```
lm5-fim4-0G3QD:~ alex_fimm_dev$ cd ~/.android/
lm5-fim4-0G3QD:.android alex_fimm_dev$ keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
Unable to locate an executable at "/Library/Java/Home/bin/bin/keytool" (-1)
lm5-fim4-0G3QD:.android alex_fimm_dev$ 

```

[![enter image description here](https://i.stack.imgur.com/AFZxA.png)](https://i.stack.imgur.com/AFZxA.png)