I am using Ubuntu Linux 32bit system, in terminal it shows no class specified
sanidhya09@sanidhya09:~/workspace/NdkFooActivity$ javah -jni
-classpath adt-bundle-linux-x86/sdk/platforms/android-4.2/android.jar;bin/classes/
-d jni/ com.example.NdkFooactivity Error: no classes specified bash: bin/classes/: Is a directory
even i have tried this
sanidhya09@sanidhya09:~/workspace/NdkFooActivity/bin/classes$ javah
-jni -classpath adt-bundle-linux-x86/sdk/platforms/android-4.2/android.jar; com.example.NdkFooactivity.NdkFooActivity Error: no classes specified com.example.NdkFooactivity.NdkFooActivity: command not found
even i tried External tools configuration
where in argument section i wrote
-d /home/sanidhya09/workspace/NdkFooActivity/jni -classpath /home/sanidhya09/adt-bundle-linux-x86/sdk/platforms/android-4.2/android.jar:/home/sanidhya09/workspace/NdkFooActivity/bin/classes com.example.NdkFooactivity
even in eclipse i get error saying
make:
[HelloJni] Error 127 HelloJni C/C++ Problem
should be fine, assuming your app package is com.example.NdkFooactivity and the class you are interested in is NdkFooActivity.
Note that you must pass the path to
android.jaryou actually used to compile. In my SDK, the directory is calledandroid-16, notandroid-4.2. Also, you need to have thebin/classesdirectory in classpath. You may need more jars in your classpath.