Maven build fails with this error:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
javac -version returns Eclipse Java Compiler 0.894_R34x.
which java returns /usr/bin/java. From there I did a readlink which returned the following /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el6_8.x86_64/jre/bin/java
I assigned this value to JAVA_HOME and tried to build the project using maven. Failed again. I also various versions of java under /usr/lib/jvm as shown here:
I tried various values from the above list and none of them seem to help.
Can someone help?
follow up:
The jdk folder contains only bin & lib folders. Is this correct?