I’m a beginner in Liferay portal , when I try to compile my file : build.xml , those errors appear :
BUILD FAILED
D:\PFA\liferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\build-common-plugin.xml:407: The following error occurred while executing this line:
D:\PFA\liferay-plugins-sdk-6.1.0-ce-ga1-20120106155615760\build-common.xml:94: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0
The current version of :
-
JDK : 1.6
-
ANT : 1.8.3
You do most likely not only have Java 6 installed, but a mixture of different Java versions. Either configure them to use one and only one (JRE/JDK) or uninstall all versions that you don’t need.
You can also find more information in this question: Why is Ant giving me a Unsupported major.minor version error