Fórumok
Errors when deploying portlets
Jan Kosecki, módosítva 11 év-val korábban
Errors when deploying portlets
New Member Bejegyzések: 16 Csatlakozás dátuma: 2012.10.29. Legújabb bejegyzések
Hello,
I'm trying to deploy the portlets I have obtained from the previous developer but I do get the following error:
C:\LDS\liferay-plugins\build-common-plugin.xml:399: The following error occurred while executing this line:
C:\LDS\liferay-plugins\build-common.xml:94: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0
The compilence level is set to 1.7, both Java and Ant are of the newest version.
What can I do to solve that problem?
OK, problem fixed. Not sure what has happened but after some changes and restarts, it worked.
I'm trying to deploy the portlets I have obtained from the previous developer but I do get the following error:
C:\LDS\liferay-plugins\build-common-plugin.xml:399: The following error occurred while executing this line:
C:\LDS\liferay-plugins\build-common.xml:94: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0
The compilence level is set to 1.7, both Java and Ant are of the newest version.
What can I do to solve that problem?
OK, problem fixed. Not sure what has happened but after some changes and restarts, it worked.
Gregory Amerson, módosítva 11 év-val korábban
RE: Errors when deploying portlets
Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Thanks for following up, glad it is fixed now.
Luigi Candita, módosítva 11 év-val korábban
RE: Errors when deploying portlets
Junior Member Bejegyzések: 38 Csatlakozás dátuma: 2009.05.04. Legújabb bejegyzésekGregory Amerson:
Thanks for following up, glad it is fixed now.
Fantastic that in Liferay many things (and many posts on forum) ends with similar phrases like as:
OK, problem fixed. Not sure what has happened but after some changes and restarts, it worked.
8
Brandt Solovij, módosítva 11 év-val korábban
RE: Errors when deploying portlets
New Member Bejegyzések: 14 Csatlakozás dátuma: 2012.03.23. Legújabb bejegyzésekJan Kosecki:
Hello,
I'm trying to deploy the portlets I have obtained from the previous developer but I do get the following error:
C:\LDS\liferay-plugins\build-common-plugin.xml:399: The following error occurred while executing this line:
C:\LDS\liferay-plugins\build-common.xml:94: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0
The compilence level is set to 1.7, both Java and Ant are of the newest version.
What can I do to solve that problem?
OK, problem fixed. Not sure what has happened but after some changes and restarts, it worked.
running into the same problem.
environment info :
-java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b23)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
-Apache Ant(TM) version 1.8.2 compiled on June 20 2012 ( default mac OS x install )
-liferay-portal-6.1.10-ee-ga1
-mysql-5.5.28-osx10.6-x86_64
Remote server connection is fine within the Eclipse IDE. Portlet authoring is also fine. Drag n drop deploy to the server runs fine for a while this hits
[PortletBagFactory:123] java.lang.UnsupportedClassVersionError: com/liferay/mypackage/roughs/ExamplePortlet : Unsupported major.minor version 51.0 (unable to load class com.liferay.mypackage.roughs.ExamplePortlet)
java.lang.UnsupportedClassVersionError: com/liferay/mypackage/roughs/ExamplePortlet : Unsupported major.minor version 51.0 (unable to load class com.liferay.mypackage.roughs.ExamplePortlet)
Thanks in advance
edit after a little work - looks like reverting to 1.6 may have solved the issue.
David H Nebinger, módosítva 11 év-val korábban
RE: Errors when deploying portlets
Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzésekBrandt Solovij:
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b23)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
edit after a little work - looks like reverting to 1.6 may have solved the issue.
Surprised the OP got it to work. Java 7 is not yet supported in Liferay AFAIK...