Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java API
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Other JSE/JEE APIs
problem in jni.h
swapnel surade
Ranch Hand
Posts: 129
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
First you'll need to find your jni.h file.
locate jni.h
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:
gcc -shared -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/jvm/java-6-openjdk/include/linux -o libfoo.so foo.c
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
New to JNI
jni.h not open - can not compile
jni problem
JNI error
JNI Problem
More...