This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use Javah in Ubuntu14.04 for HelloNDK?

 
Mandar Khire
Ranch Hand
Posts: 569
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
http://www.ntu.edu.sg/home/ehchua/programming/android/Android_NDK.html
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
/home/androiddev/Applications/Android_sdk/sdk/platforms/android-21/android.jar

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