manoj
manoj

Reputation: 33

-bash: javah: command not found on windows7

I am new to Android environment.I use this link(http://stevethai.wordpress.com/2010/08/04/android-helloworld-with-native-code-tutorial/) to run the NDK Project using NDK and cygwin Terminal.I follow all the steps given in the link.However during compiling in Cygwin Terminal it shows Error Like(-bash: javah: command not found).I specify all the path correctly. Thanks in Advance.

Upvotes: 0

Views: 3145

Answers (2)

运 张
运 张

Reputation: 1

may be you using DOS command in cygwin,enter DOS prompt,and set:

PATH c:\program files\java\jdk1.7.0_25\bin;%path%

then execute javah

Upvotes: 0

tuck
tuck

Reputation: 452

if you have export PATH=$PATH:/cygdrive/c/Program\ Files/Java/jdk1.7.0/bin set up it should work. Try restarting cygwin to reload env variables. Also, are you sure you are using the jdk and not the jre?

Upvotes: 2

Related Questions