掲示板
Errors when deploying portlets
11年前 に Jan Kosecki によって更新されました。
Errors when deploying portlets
New Member 投稿: 16 参加年月日: 12/10/29 最新の投稿
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.
11年前 に Gregory Amerson によって更新されました。
RE: Errors when deploying portlets
Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
Thanks for following up, glad it is fixed now.
11年前 に Luigi Candita によって更新されました。
RE: Errors when deploying portlets
Junior Member 投稿: 38 参加年月日: 09/05/04 最新の投稿Gregory 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
11年前 に Brandt Solovij によって更新されました。
RE: Errors when deploying portlets
New Member 投稿: 14 参加年月日: 12/03/23 最新の投稿Jan 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.
11年前 に David H Nebinger によって更新されました。
RE: Errors when deploying portlets
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿Brandt 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...