Javah Missing After Jdk Install (linux)
I'm trying to setup Android development with Eclipse (Indigo), on Fedora17. Almost everything seems to work, just the javah is missing, to build the C headers with, for native (NDK
Solution 1:
In linux machines, JavaH is normally located in /usr/bin/javah
.
If you try to find this file with locate
, it is normally a good idea to run before updatedb
, since the database is not updated unless this command is run either by the user or a cron job. You could try finding the file with find / |grep javah
P.S. Sorry to post this as an asnwer. I suppose the corret way to go would have been a comment, but still don't have enough reputation to post a comment
Solution 2:
Try gjavah
rather than javah
?
Solution 3:
It turns out that javah
link is not created during JDK install. You have to create it manually:
Check where is installed java
:
$ ls -l `which java`
lrwxrwxrwx root root 26 15 juil. 02:05 /usr/bin/java -> /usr/java/default/bin/java
Create the symlink in the same directory:
$ su# cd /usr/bin# ln -s /usr/java/default/bin/javah
Solution 4:
This tool has been removed from the JDK
Post a Comment for "Javah Missing After Jdk Install (linux)"