Reputation: 33
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
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
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