-1

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

Angelika
  • 381
  • 1
  • 9
  • 22

2 Answers2

1

I have created a new environement variable ANT_HOME and set its path as C:....\ant_apache1.8.3 and call it in my PATH by %ANT_HOME%\bin
It's working now .
for more details :
Ant Apache

Angelika
  • 381
  • 1
  • 9
  • 22
0

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

Community
  • 1
  • 1
Olaf Kock
  • 46,930
  • 8
  • 59
  • 90