安装JDK后缺少Javah(Linux) [英] Javah missing after JDK install (Linux)

查看:640
本文介绍了安装JDK后缺少Javah(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Fedora17上使用Eclipse(Indigo)设置Android开发. 几乎所有的东西似乎都可以正常工作,只是缺少javah来为本机(NDK/JNI)模块构建C头文件.

在Windows上的工具链安装中,它位于javac所在的文件夹中,但是在Linux机器上不是这种情况.

我以前安装了Oracle的JDK1.7,发现它是我想做的其他事情的新手(但在那里,没有javah),将其卸载,现在已安装JDK1.6.

怎么了?

解决方案

在linux计算机中,JavaH通常位于/usr/bin/javah中.

如果尝试使用locate查找此文件,通常最好在updatedb之前运行,因为除非用户或cron作业运行此命令,否则不会更新数据库.您可以尝试使用find / |grep javah

查找文件

P.S.抱歉,将其发布为附件.我想正确的做法是发表评论,但仍然没有足够的声誉发表评论

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 / JNI) modules.

On my windows install of the tool chain it was in the same folder javac was in, but this is not the case on the Linux machine.

I previously installed Oracle's JDK1.7, found out that it's to new for something else I wanted to do (but also there, no javah), uninstalled it, now JDK1.6 is installed.

What might be wrong?

解决方案

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

这篇关于安装JDK后缺少Javah(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆