简体   繁体   中英

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

Following this tutorial to use Opencv Face Detection. At 4:00 he wrote on terminal:

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

Some of questions which the same already in stackoverflow , but it will not help to get the solutions. Could anyone help me? thanks

It means the bin/ folder of your JDK is not in your PATH variable

You can download a JDK from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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