简体   繁体   English

android studio'javah'无法识别为内部或外部命令

[英]android studio 'javah' is not recognized as an internal or external command

Following this tutorial to use Opencv Face Detection. 按照本教程使用Opencv人脸检测。 At 4:00 he wrote on terminal: 4:00,他在航站楼上写道:

C:\\Users\\cvlab\\Desktop\\MyApplication\\app\\src\\main>javah -d jni -classpath ../../build/intermediate/classes/debug com.example.cvlab.myapplication.OpencvClass C:\\ Users \\ cvlab \\ Desktop \\ MyApplication \\ app \\ src \\ main> javah -d jni -classpath ../../build/intermediate/classes/debug com.example.cvlab.myapplication.OpencvClass

I'm trying to wrote the same path on my code but I'm running into this error: 我试图在我的代码上写相同的路径,但是遇到了这个错误:

'javah' is not recognized as an internal or external command 无法将“ javah”识别为内部或外部命令

Some of questions which the same already in stackoverflow , but it will not help to get the solutions. 有些问题在stackoverflow中已经相同,但无助于获得解决方案。 Could anyone help me? 有人可以帮我吗? thanks 谢谢

It means the bin/ folder of your JDK is not in your PATH variable 这意味着JDK的bin/文件夹不在PATH变量中

You can download a JDK from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 您可以从https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html下载JDK。

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

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