Search code examples
androidandroid-ndkjava-native-interfacewebcamjavah

How to fix 'javah' error to create JNI folder when using NDK with Android Studio?


I Create a WebCam based Android Application. I follow a YouTube video to create JNI to support my project. But i will show error on creating a JNI folder in parent directory.

When i compile the code in compiler

D:\SRINIVASAN\WebCam_Android\SudharsWebCam\app\src\main>javah -d jni -classpath D:\Android-New\platforms\android-19\android.jar;.. \ ..\build\intermediates\classes\debug com.example.sudharsanc.sudharswebcam.CameraPreview

It shows error as

javah is not recognized as an internal or external command, operable program or batch file.

Some of questions which the same already in stackoverflow , but it will not help to get the solutions.

Guide me. Thanks in Advance..


Solution

  • I got the answer to create jni folder using compiler javah command in android studio.

    Follow the steps