在ubuntu 12上,我尝试运行fuse-jna的示例程序。我收到以下错误消息
syed@ubuntu:~/Downloads/fuse-jna-master/examples$ ./hellofs.sh ~/hellofs
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
running java -version
命令显示:
syed@ubuntu:~/Downloads/fuse-jna-master/examples$ java -version
java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10)
OpenJDK Client VM (build 23.7-b01, mixed mode, sharing)
的输出javac -version
:
syed@ubuntu:~/Downloads/fuse-jna-master/examples$ javac -version
javac 1.6.0_27
这些已安装在我的系统上,请参见此处的图片
http://i40.tinypic.com/2hf2j4z.png http://i40.tinypic.com/2hf2j4z.png
请指导我在 Ubuntu 上运行这个程序
安装JDK
sudo apt-get install openjdk-7-jdk
编辑:最初的答案有 jre 包(不是 jdk)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)