Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in jni.h

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm working on jni in linux for that I have to generate the .so file.
But when I use gcc to compile it showing me the following error
error: jni.h: No such file or directory

how to tackle this error.

thanks
swapnil
 
Daniel Gagnon
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First you'll need to find your jni.h file.



On my distro, it's at: /usr/lib/jvm/java-6-openjdk/include/jni.h

And then you'll need to add it on the command line to gcc:



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic