4

The Point:

I want to call a C/C++ function from Java.

What I do:

1

I followed this direction. https://www.youtube.com/watch?v=0fEtrekNcOo

Just created Project, wrote below code and build it.

public native String HelloJNI();
static {
    System.loadLibrary("HelloJNI");
}

2

javah -d jni -classpath /Applications/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-19/android.jar;../../build/intermediates/classes/debug com.test.ndktest.MyActivity

The Problem:

I got this error message. "bash: ../../build/intermediates/classes/debug: is a directory"

I spent many time to find solutions.. Any help will be appreciated.

Thanks.

Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
zono
  • 8,366
  • 21
  • 75
  • 113

0 Answers0