While running Maven build the below error occur, when there are more than one JDK installed.
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.6
Usage: javac <options> <source files>
Example JDK 5 and JDK 6 has installed JDK 5 is on that JAVA_HOME. this error will occur.
To resolve this set JAVA_HOME as JDK 6 in enviroment variables setting dialog or set JAVA_HOME in command prompt before running maven build. Second one temporary solution once the command window closed, JAVA_HOME reset back to default in system settings.
Comments
Post a Comment