• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use Javah in Ubuntu14.04 for HelloNDK?  RSS feed

Ranch Hand
Posts: 621
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Ubuntu14.04, Eclipse Luna.
I am referring Hello World Example given link
My project name is HelloNDK.
My project path is /home/androiddev/workspace_luna/HelloNDK
In AndroidManifest.xml I can see package which I use is named as: com.delta.hellondk
Android.jar which automatically added in project which is under Android 5.0.1 & its location shown as

When I use javah command, I got error.
I use following line in terminal.


when I use following command, I got error as follows:

When i clean build project before using these commands, at h location is /home/androiddev/workspace_luna/HelloNDK/bin/classes/com/delta/hellondk in this i have BuildConfig.class ,R$attr.class,R$dimen.class,R$layout.class,R$string.class,JNIActivity.class,R.cl‌​ass,R$drawable.class,R$menu.class generated.

Now I search lots of keywords in google, stackoverflow regarding how to generate HelloJNI.h automatically. But i failed.

Please guide me!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!