Hi,
I was trying to run a maven build, but i have a jdk 1.6 but it gives me error
==========================
====
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------
----------
----------
----------
----------
------
[INFO] Building SpringBatchExample 1.0-SNAPSHOT
[INFO] --------------------------
----------
----------
----------
----------
------
[INFO]
[INFO] --- maven-resources-plugin:2.4
.3:resourc
es (default-resources) @ SpringBatchExample ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.
2:compile (default-compile) @ SpringBatchExample ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 4 source files to D:\SpringBatchExample\targ
et\classes
[INFO] --------------------------
----------
----------
----------
-----
COMPILATION ERROR :
[INFO] --------------------------
----------
----------
----------
-----
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre6\..\lib\too
ls.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] --------------------------
----------
----------
----------
-----
[INFO] --------------------------
----------
----------
----------
----------
------
[INFO] BUILD FAILURE
[INFO] --------------------------
----------
----------
----------
----------
------
[INFO] Total time: 8.324s
[INFO] Finished at: Mon Nov 25 11:04:13 IST 2013
[INFO] Final Memory: 8M/54M
[INFO] --------------------------
----------
----------
----------
----------
------
Failed to execute goal org.apache.maven.plugins:m
aven-compi
ler-plugin
:2.3.2:com
pile (default-compile) on project SpringBatchExample: Compilation failure
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre6\..\lib\too
ls.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
-> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
==========================
====