Javah: Error: cannot access android.support.v7.app.ActionBarActivity

I have a problem with javah, I read about 4 or 5 stakcoverflow messages with a "resolved" error, but everything works for me.

My problem:

When I execute the javah command, I have this error:

Error: cannot access android.support.v7.app.ActionBarActivity
  class file for android.support.v7.app.ActionBarActivity not found

What I tried:

This is the command I tested:

C:\Users\MyUser\workspace3\PruebaApp\jni\include>javah -classpath ../../bin/classes;C:\Users\MyUser\AppData\Local\Android\sdk\platforms\android-14\android.jar -o ACK.h com.test.prueba.ACK

I also tried the same command only with "/" and only "\" to separate directories.

I tried it with android-11, android-14 and android-21.

I tried to add the following external banks to my project: "android-support-v4.jar" and "android-support-v7-appcompat.jar"

I tried to do this by creating an external build configuration using eclipse, for example here: Javah Error android.app.Activity not found

,

eclipse juno, 8.1.

, , - {project_dir}/jni/include. , .

.java, , "ACK.java" : "com.test.prueba"

, , , - android 5.0.1

? .

+4
2

, java, JNI. javah option -classpath . , com/test/prueba/ACK.java - , JNI. {project_dir}\src,

javah com.test.prueba.ACK

JNI com_test_prueba_ACK.h.

+9

android-support-v7-appcompat.jar android-support-v4.jar pathpath.

+2

All Articles