According to integrate the online tutorial, we found the following problems:
Inaccessible android.app.Activity
Can not find the class file android.app.Activity
Line to see Daniel said that for this reason: Unable to access android.app.Activity explanation is not introduced android.jar package
can specify java -h look inside.
There is a point to let him -bootclasspath parameters android.jar package
the following example: javah -classpath bin / classes -bootclasspath D : \ Environment \ android-sdk-windows \ android-sdk-windows \ platforms \ android-16 \ android .jar -d jni com.jm.promedia.SecondActivity
or you can go to javah -d ../jni com.jm.promedia.SecondActivity src directory
where -d is the establishment of a directory, the generated files inside
This can be seen very simple question, android jar package can not be found, Daniel said this sentence: "or you can also go to the src directory javah -d ../jni com.jm.promedia.SecondActivity"
Thus, the integration ubuntu14 and eclipse jni javah generate header files can be arranged so
Another reference to Daniel tutorial: http: //blog.csdn.net/jiuyueguang/article/details/9404237
Arguments and Working Directory settings changed me on it , the picture is as follows:
Then you can, and if the problem can contact me qq, QQ: 1024883177