Issue
On ubuntu 12, I am trying to run example program of fuse-jna. I got below error message
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
command shows me:
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)
output of javac -version
:
syed@ubuntu:~/Downloads/fuse-jna-master/examples$ javac -version
javac 1.6.0_27
these are installed on my system, see the picture here
http://i40.tinypic.com/2hf2j4z.png
Please guide me to run this program on Ubuntu
Solution
It was a problem with an environment variable. After correcting the java_home environment variable in etc/environment and restarting ubuntu, now it runs ok. Thanks for the guidance.
Answered By - user584910 Answer Checked By - Timothy Miller (WPSolving Admin)