Under ubuntu14 integration and javah eclipse jni generated header files inaccessible encountered android.app.Activity can not find solutions to the problem of class files of android.app.Activity

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_15345551/article/details/50518005

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:

Images such as this

Then you can, and if the problem can contact me qq, QQ: 1024883177

Guess you like

Origin blog.csdn.net/qq_15345551/article/details/50518005