简体   繁体   English

-bash:javah:在windows7上找不到命令

[英]-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. 我是Android环境的新手。我使用此链接( http://stevethai.wordpress.com/2010/08/04/android-helloworld-with-native-code-tutorial/ )使用NDK和cygwin运行NDK项目终端。我按照链接中给出的所有步骤进行操作。但是在Cygwin终端编译期间,它显示Error Like(-bash:javah:command not found)。我正确指定了所有路径。 Thanks in Advance. 提前致谢。

if you have export PATH=$PATH:/cygdrive/c/Program\\ Files/Java/jdk1.7.0/bin set up it should work. 如果你有export PATH=$PATH:/cygdrive/c/Program\\ Files/Java/jdk1.7.0/bin设置它应该工作。 Try restarting cygwin to reload env variables. 尝试重新启动cygwin以重新加载env变量。 Also, are you sure you are using the jdk and not the jre? 另外,你确定你使用的是jdk而不是jre吗?

may be you using DOS command in cygwin,enter DOS prompt,and set: 可能是你在cygwin中使用DOS命令,进入DOS提示符,并设置:

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

then execute javah 然后执行javah

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM